StatGroups: Oopsie, -1 <= rank compares. xP
This commit is contained in:
parent
7754dd1926
commit
b3db6e1d04
@ -31,8 +31,10 @@ public void OnAllPluginsLoaded()
|
|||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
public void OnClientAuthorized(int client, const char[] sAuthID)
|
public void OnClientAuthorized(int client, const char[] sAuthID)
|
||||||
{
|
{
|
||||||
int rank = RetrieveStatRank(client);
|
int rank;
|
||||||
|
if ((rank = RetrieveStatRank(client)) == -1)
|
||||||
|
return;
|
||||||
|
|
||||||
if (rank <= 10) AdminGroups_GrantAdminGroup(client, "Ranking-Top10");
|
if (rank <= 10) AdminGroups_GrantAdminGroup(client, "Ranking-Top10");
|
||||||
if (rank <= 20) AdminGroups_GrantAdminGroup(client, "Ranking-Top20");
|
if (rank <= 20) AdminGroups_GrantAdminGroup(client, "Ranking-Top20");
|
||||||
if (rank <= 40) AdminGroups_GrantAdminGroup(client, "Ranking-Top40");
|
if (rank <= 40) AdminGroups_GrantAdminGroup(client, "Ranking-Top40");
|
||||||
|
Loading…
Reference in New Issue
Block a user