Posts: 596
Threads: 75
Joined: Nov 2015
Quote:
Originally Posted by Barnwell
If you can't
i make one for you
pawn Код:
CMD:richlist(playerid, params[])//509 { if(IsPlayerConnected(playerid)) { SCM(playerid, COLOR_GRAD3, "Rich Users online:"); new string[128]; foreach(Player, i) { if(IsPlayerConnected(i)) { if(GetPlayerCash(i) >= 100000 || PlayerInfo[i][pAccount] >= 100000) { format(string, sizeof(string), "%s (%d) - In Hand: $%d | In Bank: $%d", GPN(i), i, GetPlayerCash(i), PlayerInfo[i][pAccount]); SCM(playerid, COLOR_GRAD1, string); } } } } return 1; }
|
Код:
if(IsPlayerConnected(playerid))
Lol what is the need of checking that the the "player" is connected or not