Skip to content

Commit

Permalink
German Translations
Browse files Browse the repository at this point in the history
+Added German Translations #7
*Fixed Version ConVar posting to Chat on every Config Reload
*Replaced Plugin break on Language Problems with simple Messages and Logging
  • Loading branch information
DJPlaya committed Jan 30, 2019
1 parent fe0314f commit c299833
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 92 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Requires
- Sockets 3.0.1 or newer

Optional:
- Sourcebans
- Sourcebans++
- Sourcebans
#
#
Commands | Description | Adminflag
Expand Down
76 changes: 0 additions & 76 deletions Translation.german.txt

This file was deleted.

Binary file modified scripting/kigen-ac_redux.smx
Binary file not shown.
16 changes: 11 additions & 5 deletions scripting/kigen-ac_redux.sp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void OnPluginStart()

AutoExecConfig(true, "Kigen_AC_Redux");

g_hCVarVersion = CreateConVar("kacr_version", PLUGIN_VERSION, "KACR Plugin Version (do not touch)", FCVAR_NOTIFY|FCVAR_DONTRECORD|FCVAR_UNLOGGED); // "notify" - So that we appear on server Tracking Sites, "dontrecord" - So that we don't get saved to the auto cfg, "unlogged" - Because changes of this Cvar dosent need to be logged
g_hCVarVersion = CreateConVar("kacr_version", PLUGIN_VERSION, "KACR Plugin Version (do not touch)", FCVAR_NOTIFY|FCVAR_SPONLY|FCVAR_DONTRECORD|FCVAR_UNLOGGED); // "notify" - So that we appear on Server Tracking Sites, "sponly" because we do not want Chat Messages about this CVar caused by "notify", "dontrecord" - So that we don't get saved to the Auto cfg, "unlogged" - Because changes of this CVar dosent need to be logged

SetConVarString(g_hCVarVersion, PLUGIN_VERSION);
HookConVarChange(g_hCVarVersion, VersionChange);
Expand All @@ -168,12 +168,18 @@ public OnAllPluginsLoaded()
{
char f_sReason[256], f_sAuthID[64];

if(FindPluginByFile("sourcebans.smx"))
g_bSourceBans = true;

else if(FindPluginByFile("sbpp_main.smx"))
if(FindPluginByFile("sbpp_main.smx"))
g_bSourceBansPP = true;

else if(FindPluginByFile("sourcebans.smx"))
g_bSourceBans = true;

else // Rare but possible, someone unloaded SB and we would still think its active :O
{
g_bSourceBansPP = false;
g_bSourceBans = false;
}

//- Module Calls -//
Commands_OnAllPluginsLoaded();

Expand Down
Loading

0 comments on commit c299833

Please sign in to comment.