forked from UNLOZE/sm-plugins
Fix CallAdmin
This commit is contained in:
@@ -29,8 +29,6 @@
|
||||
#include "include/calladmin"
|
||||
#include "include/calladmin_stocks"
|
||||
|
||||
#undef REQUIRE_PLUGIN
|
||||
#include "include/updater"
|
||||
#include <basecomm>
|
||||
|
||||
#pragma semicolon 1
|
||||
@@ -59,12 +57,6 @@ bool g_bClientOnBlacklist[MAXPLAYERS + 1];
|
||||
bool g_bClientImmune[MAXPLAYERS + 1];
|
||||
|
||||
|
||||
|
||||
// Updater
|
||||
#define UPDATER_URL "http://plugins.gugyclan.eu/calladmin/calladmin_usermanager.txt"
|
||||
|
||||
|
||||
|
||||
public Plugin myinfo =
|
||||
{
|
||||
name = "CallAdmin UserManager",
|
||||
@@ -183,14 +175,8 @@ public void OnCvarChanged(Handle cvar, const char[] oldValue, const char[] newVa
|
||||
}
|
||||
|
||||
|
||||
// Updater
|
||||
public void OnAllPluginsLoaded()
|
||||
{
|
||||
if (LibraryExists("updater"))
|
||||
{
|
||||
Updater_AddPlugin(UPDATER_URL);
|
||||
}
|
||||
|
||||
if (!LibraryExists("basecomm") && (g_bBlacklistMuted || g_bBlacklistGagged))
|
||||
{
|
||||
CallAdmin_LogMessage("Couldn't find Plugin basecomm.smx. But you've activated mute or gag blacklisting!");
|
||||
@@ -198,18 +184,6 @@ public void OnAllPluginsLoaded()
|
||||
}
|
||||
|
||||
|
||||
// Updater
|
||||
public void OnLibraryAdded(const char[] name)
|
||||
{
|
||||
if (StrEqual(name, "updater"))
|
||||
{
|
||||
Updater_AddPlugin(UPDATER_URL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user