forked from UNLOZE/sm-plugins
Fix OnLibrary* spam
This commit is contained in:
@@ -105,8 +105,21 @@ public void OnAllPluginsLoaded()
|
||||
(g_Extension_Voice ? "loaded" : "not loaded"));
|
||||
}
|
||||
|
||||
public void OnLibraryAdded(const char[] name) { OnAllPluginsLoaded(); }
|
||||
public void OnLibraryRemoved(const char[] name) { OnAllPluginsLoaded(); }
|
||||
public void OnLibraryAdded(const char[] name)
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user