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;