14.12.2014, 05:35
pawn Код:
if (strcmp(cmd, "/ricos", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW, "Ricos online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerMoneyEx(i) >= 200000 || PlayerInfo[playerid][pAccount] >= 200000) // Altere como deseja
{
GetPlayerName(i, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, 256, "Nome: %, Dinheiro: $%d| Banco: $%d", sendername, GetPlayerMoneyEx(i), PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
return true;
}