Fix CallAdmin
This commit is contained in:
parent
57f4040176
commit
512cc7dbe2
@ -29,7 +29,6 @@
|
||||
#include "include/calladmin_stocks"
|
||||
|
||||
#undef REQUIRE_PLUGIN
|
||||
#include "include/updater"
|
||||
#include <clientprefs>
|
||||
#pragma semicolon 1
|
||||
#pragma newdecls required
|
||||
@ -133,11 +132,6 @@ Handle g_hOnReportHandledForward;
|
||||
|
||||
|
||||
|
||||
|
||||
// Updater
|
||||
#define UPDATER_URL "http://plugins.gugyclan.eu/calladmin/calladmin.txt"
|
||||
|
||||
|
||||
public Plugin myinfo =
|
||||
{
|
||||
name = "CallAdmin",
|
||||
@ -698,29 +692,6 @@ public Action Timer_Advert(Handle timer)
|
||||
|
||||
|
||||
|
||||
|
||||
public void OnAllPluginsLoaded()
|
||||
{
|
||||
if (LibraryExists("updater"))
|
||||
{
|
||||
Updater_AddPlugin(UPDATER_URL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void OnLibraryAdded(const char[] name)
|
||||
{
|
||||
if (StrEqual(name, "updater"))
|
||||
{
|
||||
Updater_AddPlugin(UPDATER_URL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void OnCvarChanged(ConVar cvar, const char[] oldValue, const char[] newValue)
|
||||
{
|
||||
if (cvar == g_hHostPort)
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
@ -1 +0,0 @@
|
||||
../CallAdmin/scripting/include/calladmin.inc
|
1
includes/calladmin.inc
Symbolic link
1
includes/calladmin.inc
Symbolic link
@ -0,0 +1 @@
|
||||
../CallAdmin/scripting/include/calladmin.inc
|
@ -1 +0,0 @@
|
||||
../CallAdmin/scripting/include/calladmin_stocks.inc
|
1
includes/calladmin_stocks.inc
Symbolic link
1
includes/calladmin_stocks.inc
Symbolic link
@ -0,0 +1 @@
|
||||
../CallAdmin/scripting/include/calladmin_stocks.inc
|
@ -1 +0,0 @@
|
||||
../CallAdmin/scripting/include/calladmin_usermanager.inc
|
1
includes/calladmin_usermanager.inc
Symbolic link
1
includes/calladmin_usermanager.inc
Symbolic link
@ -0,0 +1 @@
|
||||
../CallAdmin/scripting/include/calladmin_usermanager.inc
|
Loading…
Reference in New Issue
Block a user