From 10d782d78cc7f44be4564b4da0e058c0ddc5da7f Mon Sep 17 00:00:00 2001 From: Dogan Date: Fri, 1 Nov 2019 01:35:02 +0100 Subject: [PATCH] AntiNoob: RCON --> Generic Flag --- AntiNoob/scripting/AntiNoob.sp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AntiNoob/scripting/AntiNoob.sp b/AntiNoob/scripting/AntiNoob.sp index 7d570e39..fe9993ea 100644 --- a/AntiNoob/scripting/AntiNoob.sp +++ b/AntiNoob/scripting/AntiNoob.sp @@ -88,7 +88,7 @@ public void OnPluginStart() g_cAntiNoobHelp = "{cyan}[AntiNoob]{white} Plugin still loading"; g_cAntiNoobPopulation = "{white}."; - RegAdminCmd("sm_antinoob", Command_AntiNoob, ADMFLAG_RCON, "returns the current helps or boosts for this round"); + RegAdminCmd("sm_antinoob", Command_AntiNoob, ADMFLAG_GENERIC, "returns the current helps or boosts for this round"); AutoExecConfig(true, "plugin.AntiNoob"); } @@ -225,7 +225,7 @@ public void OnRoundStart(Event hEvent, const char[] sEvent, bool bDontBroadcast) PerformReset(); for(int i = 1; i <= MaxClients; i++) { - if(IsRootAdmin(i)) + if(IsAdmin(i)) CPrintToChat(i,"%s%s", g_cAntiNoobHelp, g_cAntiNoobPopulation); } @@ -266,7 +266,7 @@ public void OnRoundStart(Event hEvent, const char[] sEvent, bool bDontBroadcast) for(int i = 1; i <= MaxClients; i++) { - if(IsRootAdmin(i)) + if(IsAdmin(i)) CPrintToChat(i,"%s%s", g_cAntiNoobHelp, g_cAntiNoobPopulation); } } @@ -327,9 +327,9 @@ public void PerformReset() } } -static stock bool IsRootAdmin(int client) +static stock bool IsAdmin(int client) { - if (client > 0 && client <= MaxClients && IsClientInGame(client) && CheckCommandAccess(client, "", ADMFLAG_RCON)) + if (client > 0 && client <= MaxClients && IsClientInGame(client) && CheckCommandAccess(client, "", ADMFLAG_GENERIC)) return true; else return false;