forked from UNLOZE/sm-plugins
fix UNLOZE+ReservedSlots
fix dependency unload error in a few plugins with LibraryExists in OnAllPluginsLoaded
This commit is contained in:
@@ -100,6 +100,18 @@ public void OnAllPluginsLoaded()
|
||||
g_Plugin_zombiereloaded = LibraryExists("zombiereloaded");
|
||||
}
|
||||
|
||||
public void OnLibraryAdded(const char[] sName)
|
||||
{
|
||||
if(strcmp(sName, "zombiereloaded", false) == 0)
|
||||
g_Plugin_zombiereloaded = true;
|
||||
}
|
||||
|
||||
public void OnLibraryRemoved(const char[] sName)
|
||||
{
|
||||
if(strcmp(sName, "zombiereloaded", false) == 0)
|
||||
g_Plugin_zombiereloaded = false;
|
||||
}
|
||||
|
||||
public void OnPluginEnd()
|
||||
{
|
||||
KillTimer(g_hThinkTimer);
|
||||
|
||||
Reference in New Issue
Block a user