StatGroups: Oopsie, -1 <= rank compares. xP

This commit is contained in:
zaCade 2018-07-24 01:40:48 +02:00
parent 7754dd1926
commit b3db6e1d04

View File

@ -31,8 +31,10 @@ public void OnAllPluginsLoaded()
//----------------------------------------------------------------------------------------------------
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 <= 20) AdminGroups_GrantAdminGroup(client, "Ranking-Top20");
if (rank <= 40) AdminGroups_GrantAdminGroup(client, "Ranking-Top40");