24.10.2015, 16:11
The command does not work properly!
Each player must receive one level. But it gets extra level 3-4.
On the server are around 60-70 players.
Код HTML:
CMD:givelevelall(playerid, params[]) { if(pInfo[playerid][pAdmin] < 6) return 1; for(new i = GetPlayerPoolSize(); i != -1; --i) { pInfo[i][pScore] += 1; VPUpdate(i, pScoreu); SetPlayerScore(i, pInfo[playerid][pScore]); } return 1; }
On the server are around 60-70 players.