17.05.2015, 18:32
Quote:
if (strcmp(cmd, "/richlist", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] > 32|| !IsPlayerAdmin(playerid)) { SCM(playerid, COLOR_LIGHTRED, "|_____________________________ Rich List Online _____________________________|"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetPlayerMoney(i) >= 1000000 || PlayerInfo[i][pAccount] >= 1000000) { GetPlayerName(i, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, 256, "%s (%d) - Hand: $%d | Bank: $%d", sendername, i, GetPlayerMoney(i), PlayerInfo[i][pAccount]); SCM(playerid, COLOR_WHITE, string); } } } } } return 1; } |