Fix CallAdmin

This commit is contained in:
BotoX 2019-10-17 10:23:18 +02:00
parent 57f4040176
commit 512cc7dbe2
5 changed files with 0 additions and 55 deletions

View File

@ -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)

View File

@ -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);
}
}
/*

View File

@ -1 +0,0 @@
../CallAdmin/scripting/include/calladmin.inc

1
includes/calladmin.inc Symbolic link
View File

@ -0,0 +1 @@
../CallAdmin/scripting/include/calladmin.inc

View File

@ -1 +0,0 @@
../CallAdmin/scripting/include/calladmin_stocks.inc

View File

@ -0,0 +1 @@
../CallAdmin/scripting/include/calladmin_stocks.inc

View File

@ -1 +0,0 @@
../CallAdmin/scripting/include/calladmin_usermanager.inc

View File

@ -0,0 +1 @@
../CallAdmin/scripting/include/calladmin_usermanager.inc