Skip to content

Commit c299833

Browse files
committed
German Translations
+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
1 parent fe0314f commit c299833

File tree

5 files changed

+116
-92
lines changed

5 files changed

+116
-92
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Requires
44
- Sockets 3.0.1 or newer
55

66
Optional:
7-
- Sourcebans
87
- Sourcebans++
8+
- Sourcebans
99
#
1010
#
1111
Commands | Description | Adminflag

Translation.german.txt

-76
This file was deleted.

scripting/kigen-ac_redux.smx

2.29 KB
Binary file not shown.

scripting/kigen-ac_redux.sp

+11-5
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void OnPluginStart()
156156

157157
AutoExecConfig(true, "Kigen_AC_Redux");
158158

159-
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
159+
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
160160

161161
SetConVarString(g_hCVarVersion, PLUGIN_VERSION);
162162
HookConVarChange(g_hCVarVersion, VersionChange);
@@ -168,12 +168,18 @@ public OnAllPluginsLoaded()
168168
{
169169
char f_sReason[256], f_sAuthID[64];
170170

171-
if(FindPluginByFile("sourcebans.smx"))
172-
g_bSourceBans = true;
173-
174-
else if(FindPluginByFile("sbpp_main.smx"))
171+
if(FindPluginByFile("sbpp_main.smx"))
175172
g_bSourceBansPP = true;
176173

174+
else if(FindPluginByFile("sourcebans.smx"))
175+
g_bSourceBans = true;
176+
177+
else // Rare but possible, someone unloaded SB and we would still think its active :O
178+
{
179+
g_bSourceBansPP = false;
180+
g_bSourceBans = false;
181+
}
182+
177183
//- Module Calls -//
178184
Commands_OnAllPluginsLoaded();
179185

0 commit comments

Comments
 (0)