AntiNoob: RCON --> Generic Flag
This commit is contained in:
parent
cde6902bc6
commit
f1667d057e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user