Fix OnLibrary* spam
This commit is contained in:
parent
aafc5a275e
commit
b68f66c85a
@ -105,8 +105,21 @@ public void OnAllPluginsLoaded()
|
|||||||
(g_Extension_Voice ? "loaded" : "not loaded"));
|
(g_Extension_Voice ? "loaded" : "not loaded"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnLibraryAdded(const char[] name) { OnAllPluginsLoaded(); }
|
public void OnLibraryAdded(const char[] name)
|
||||||
public void OnLibraryRemoved(const char[] name) { OnAllPluginsLoaded(); }
|
{
|
||||||
|
if(StrEqual(name, "voiceannounce_ex"))
|
||||||
|
g_Plugin_voiceannounce_ex = true;
|
||||||
|
else if(StrEqual(name, "Voice"))
|
||||||
|
g_Extension_Voice = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnLibraryRemoved(const char[] name)
|
||||||
|
{
|
||||||
|
if(StrEqual(name, "voiceannounce_ex"))
|
||||||
|
g_Plugin_voiceannounce_ex = false;
|
||||||
|
else if(StrEqual(name, "Voice"))
|
||||||
|
g_Extension_Voice = false;
|
||||||
|
}
|
||||||
|
|
||||||
public Action Command_Admins(int client, int args)
|
public Action Command_Admins(int client, int args)
|
||||||
{
|
{
|
||||||
|
@ -44,8 +44,21 @@ public void OnAllPluginsLoaded()
|
|||||||
(g_Plugin_UNLOZE ? "loaded" : "not loaded"));
|
(g_Plugin_UNLOZE ? "loaded" : "not loaded"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnLibraryAdded(const char[] name) { OnAllPluginsLoaded(); }
|
public void OnLibraryAdded(const char[] name)
|
||||||
public void OnLibraryRemoved(const char[] name) { OnAllPluginsLoaded(); }
|
{
|
||||||
|
if(StrEqual(name, "AFKManager"))
|
||||||
|
g_Plugin_AFKManager = true;
|
||||||
|
else if(StrEqual(name, "UNLOZE_ForumIntegration"))
|
||||||
|
g_Plugin_UNLOZE = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnLibraryRemoved(const char[] name)
|
||||||
|
{
|
||||||
|
if(StrEqual(name, "AFKManager"))
|
||||||
|
g_Plugin_AFKManager = false;
|
||||||
|
else if(StrEqual(name, "UNLOZE_ForumIntegration"))
|
||||||
|
g_Plugin_UNLOZE = false;
|
||||||
|
}
|
||||||
|
|
||||||
public void OnClientPostAdminCheck(int client)
|
public void OnClientPostAdminCheck(int client)
|
||||||
{
|
{
|
||||||
|
@ -102,8 +102,23 @@ public void OnAllPluginsLoaded()
|
|||||||
(g_Extension_Voice ? "loaded" : "not loaded"));
|
(g_Extension_Voice ? "loaded" : "not loaded"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnLibraryAdded(const char[] name) { OnAllPluginsLoaded(); }
|
void OnLibrary(const char[] name, bool added)
|
||||||
public void OnLibraryRemoved(const char[] name) { OnAllPluginsLoaded(); }
|
{
|
||||||
|
if(StrEqual(name, "ccc"))
|
||||||
|
g_Plugin_ccc = added;
|
||||||
|
else if(StrEqual(name, "zombiereloaded"))
|
||||||
|
g_Plugin_zombiereloaded = added;
|
||||||
|
else if(StrEqual(name, "voiceannounce_ex"))
|
||||||
|
g_Plugin_voiceannounce_ex = added;
|
||||||
|
else if(StrEqual(name, "AdvancedTargeting"))
|
||||||
|
g_Plugin_AdvancedTargeting = added;
|
||||||
|
else if(StrEqual(name, "Voice"))
|
||||||
|
g_Extension_Voice = added;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnLibraryAdded(const char[] name) { OnLibrary(name, true); }
|
||||||
|
public void OnLibraryRemoved(const char[] name) { OnLibrary(name, false); }
|
||||||
|
|
||||||
public void OnClientPutInServer(int client)
|
public void OnClientPutInServer(int client)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user