4343// Do not edit below this line //
4444//-----------------------------//
4545
46+ #define PLUGIN_VERSION " 1.8.1"
4647#define PREFIX " \x04 [SourceComms++]\x01 "
4748
4849//GLOBAL DEFINES
@@ -133,12 +134,10 @@ int
133134
134135SMCParser ConfigParser ;
135136
136- GlobalForward g_hFwd_StatusOK
137- , g_hFwd_StatusNotOK
138- , g_hFwd_OnPlayerPunished
139- , g_hFwd_OnPlayerUnpunished ;
140-
141- Handle g_hGagExpireTimer [MAXPLAYERS + 1 ] = { null , ... }
137+ Handle
138+ g_hFwd_OnPlayerPunished
139+ , g_hFwd_OnPlayerUnpunished
140+ , g_hGagExpireTimer [MAXPLAYERS + 1 ] = { null , ... }
142141 , g_hMuteExpireTimer [MAXPLAYERS + 1 ] = { null , ... };
143142
144143bType g_MuteType [MAXPLAYERS + 1 ];
@@ -171,7 +170,7 @@ public Plugin myinfo =
171170 name = " SourceBans++: SourceComms" ,
172171 author = " Alex, SourceBans++ Dev Team" ,
173172 description = " Advanced punishments management for the Source engine in SourceBans style" ,
174- version = SBPPComms_VERSION ,
173+ version = PLUGIN_VERSION ,
175174 url = " https://sbpp.github.io"
176175};
177176
@@ -184,9 +183,6 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
184183 CreateNative (" SourceComms_GetClientMuteType" , Native_GetClientMuteType );
185184 CreateNative (" SourceComms_GetClientGagType" , Native_GetClientGagType );
186185
187- g_hFwd_StatusOK = CreateGlobalForward (" SourceComms_OnPluginOK" , ET_Ignore );
188- g_hFwd_StatusNotOK = CreateGlobalForward (" SourceComms_OnPluginNotOK" , ET_Ignore );
189-
190186 g_hFwd_OnPlayerPunished = CreateGlobalForward (" SourceComms_OnBlockAdded" , ET_Ignore , Param_Cell , Param_Cell , Param_Cell , Param_Cell , Param_String );
191187 g_hFwd_OnPlayerUnpunished = CreateGlobalForward (" SourceComms_OnBlockRemoved" , ET_Ignore , Param_Cell , Param_Cell , Param_Cell , Param_String );
192188
@@ -207,7 +203,7 @@ public void OnPluginStart()
207203 CvarPort = FindConVar (" hostport" );
208204 g_hServersWhiteList = new ArrayList ();
209205
210- CreateConVar (" sourcecomms_version" , SBPPComms_VERSION , _ , FCVAR_SPONLY | FCVAR_REPLICATED | FCVAR_NOTIFY );
206+ CreateConVar (" sourcecomms_version" , PLUGIN_VERSION , _ , FCVAR_SPONLY | FCVAR_REPLICATED | FCVAR_NOTIFY );
211207 AddCommandListener (CommandCallback , " sm_gag" );
212208 AddCommandListener (CommandCallback , " sm_mute" );
213209 AddCommandListener (CommandCallback , " sm_silence" );
@@ -226,7 +222,7 @@ public void OnPluginStart()
226222 #endif
227223
228224 #if defined DEBUG
229- PrintToServer (" Sourcecomms plugin loading. Version %s " , SBPPComms_VERSION );
225+ PrintToServer (" Sourcecomms plugin loading. Version %s " , PLUGIN_VERSION );
230226 #endif
231227
232228 // Catch config error
@@ -252,24 +248,6 @@ public void OnPluginStart()
252248 g_bLate = false ;
253249}
254250
255- public void OnAllPluginsLoaded ()
256- {
257- SendForward_Available ();
258- }
259-
260- public void OnPluginPauseChange (bool pause )
261- {
262- if (pause )
263- SendForward_NotAvailable ();
264- else
265- SendForward_Available ();
266- }
267-
268- public void OnPluginEnd ()
269- {
270- SendForward_NotAvailable ();
271- }
272-
273251public void OnLibraryRemoved (const char [] name )
274252{
275253 if (strcmp (name , " adminmenu" , false ) == 0 )
@@ -3525,17 +3503,4 @@ public int Native_GetClientGagType(Handle hPlugin, int numParams)
35253503
35263504 return g_GagType [target ];
35273505}
3528-
3529- stock void SendForward_Available ()
3530- {
3531- Call_StartForward (g_hFwd_StatusOK );
3532- Call_Finish ();
3533- }
3534-
3535- stock void SendForward_NotAvailable ()
3536- {
3537- Call_StartForward (g_hFwd_StatusNotOK );
3538- Call_Finish ();
3539- }
3540-
35413506//Yarr!
0 commit comments