AntiNoob: RCON --> Generic Flag
This commit is contained in:
parent
0f0a37e359
commit
10d782d78c
@ -88,7 +88,7 @@ public void OnPluginStart()
|
|||||||
g_cAntiNoobHelp = "{cyan}[AntiNoob]{white} Plugin still loading";
|
g_cAntiNoobHelp = "{cyan}[AntiNoob]{white} Plugin still loading";
|
||||||
g_cAntiNoobPopulation = "{white}.";
|
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");
|
AutoExecConfig(true, "plugin.AntiNoob");
|
||||||
}
|
}
|
||||||
@ -225,7 +225,7 @@ public void OnRoundStart(Event hEvent, const char[] sEvent, bool bDontBroadcast)
|
|||||||
PerformReset();
|
PerformReset();
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
if(IsRootAdmin(i))
|
if(IsAdmin(i))
|
||||||
CPrintToChat(i,"%s%s", g_cAntiNoobHelp, g_cAntiNoobPopulation);
|
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++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
if(IsRootAdmin(i))
|
if(IsAdmin(i))
|
||||||
CPrintToChat(i,"%s%s", g_cAntiNoobHelp, g_cAntiNoobPopulation);
|
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;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user