Help top
#3

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;
}

use this
Reply


Messages In This Thread
Help top - by BlackEvils - 17.05.2015, 18:18
Re: Help top - by SickAttack - 17.05.2015, 18:31
Re: Help top - by StR_MaRy - 17.05.2015, 18:32
Re: Help top - by icra - 18.05.2015, 04:10

Forum Jump:


Users browsing this thread: 1 Guest(s)