From 512cc7dbe23e5fc4f00a671f0d57c24689955f92 Mon Sep 17 00:00:00 2001 From: BotoX Date: Thu, 17 Oct 2019 10:23:18 +0200 Subject: [PATCH] Fix CallAdmin --- CallAdmin/scripting/CallAdmin.sp | 29 --------------------- CallAdmin/scripting/CallAdminUsermanager.sp | 26 ------------------ includes/calladmin.inc | 0 includes/calladmin_stocks.inc | 0 includes/calladmin_usermanager.inc | 0 5 files changed, 55 deletions(-) mode change 100644 => 120000 includes/calladmin.inc mode change 100644 => 120000 includes/calladmin_stocks.inc mode change 100644 => 120000 includes/calladmin_usermanager.inc diff --git a/CallAdmin/scripting/CallAdmin.sp b/CallAdmin/scripting/CallAdmin.sp index a43e89ca..380a976e 100644 --- a/CallAdmin/scripting/CallAdmin.sp +++ b/CallAdmin/scripting/CallAdmin.sp @@ -29,7 +29,6 @@ #include "include/calladmin_stocks" #undef REQUIRE_PLUGIN -#include "include/updater" #include #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) diff --git a/CallAdmin/scripting/CallAdminUsermanager.sp b/CallAdmin/scripting/CallAdminUsermanager.sp index 5c97d58d..dc780614 100644 --- a/CallAdmin/scripting/CallAdminUsermanager.sp +++ b/CallAdmin/scripting/CallAdminUsermanager.sp @@ -29,8 +29,6 @@ #include "include/calladmin" #include "include/calladmin_stocks" -#undef REQUIRE_PLUGIN -#include "include/updater" #include #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); - } -} - - - - /* diff --git a/includes/calladmin.inc b/includes/calladmin.inc deleted file mode 100644 index 3094cc9b..00000000 --- a/includes/calladmin.inc +++ /dev/null @@ -1 +0,0 @@ -../CallAdmin/scripting/include/calladmin.inc \ No newline at end of file diff --git a/includes/calladmin.inc b/includes/calladmin.inc new file mode 120000 index 00000000..3094cc9b --- /dev/null +++ b/includes/calladmin.inc @@ -0,0 +1 @@ +../CallAdmin/scripting/include/calladmin.inc \ No newline at end of file diff --git a/includes/calladmin_stocks.inc b/includes/calladmin_stocks.inc deleted file mode 100644 index c97bc8b0..00000000 --- a/includes/calladmin_stocks.inc +++ /dev/null @@ -1 +0,0 @@ -../CallAdmin/scripting/include/calladmin_stocks.inc \ No newline at end of file diff --git a/includes/calladmin_stocks.inc b/includes/calladmin_stocks.inc new file mode 120000 index 00000000..c97bc8b0 --- /dev/null +++ b/includes/calladmin_stocks.inc @@ -0,0 +1 @@ +../CallAdmin/scripting/include/calladmin_stocks.inc \ No newline at end of file diff --git a/includes/calladmin_usermanager.inc b/includes/calladmin_usermanager.inc deleted file mode 100644 index 34c6a21a..00000000 --- a/includes/calladmin_usermanager.inc +++ /dev/null @@ -1 +0,0 @@ -../CallAdmin/scripting/include/calladmin_usermanager.inc \ No newline at end of file diff --git a/includes/calladmin_usermanager.inc b/includes/calladmin_usermanager.inc new file mode 120000 index 00000000..34c6a21a --- /dev/null +++ b/includes/calladmin_usermanager.inc @@ -0,0 +1 @@ +../CallAdmin/scripting/include/calladmin_usermanager.inc \ No newline at end of file