The player with the money
#4

pawn Код:
CMD:getplayerwithhighestcash(playerid,params[])
{
new name[MAX_PLAYER_NAME],highest,chighests,scores;
for(players=0;players<=MAX_PLAYERS;players++)
{
GetPlayerCash(players,chighests);
if(chighest>score)
{
score=players;
}
GetPlayerName(score,name,sizeof(name));
    format(string, sizeof(string), "Highest cash is with %s(%d)",name, GetPlayerCash(playerb));
    SendClientMessage(playerb, COLOR_WHITE, string);
return 1;
}
maybe this will work i dont know why i took so long
Reply


Messages In This Thread
The player with the money - by Ludek - 03.11.2012, 14:55
Re: The player with the money - by Glad2BeHere - 03.11.2012, 15:01
Re: The player with the money - by Ludek - 03.11.2012, 15:03
Re: The player with the money - by Abhishek. - 03.11.2012, 15:10
Re: The player with the money - by Backwardsman97 - 03.11.2012, 15:11
Re: The player with the money - by Abhishek. - 03.11.2012, 15:15
Re: The player with the money - by Ludek - 11.11.2012, 12:24
Re: The player with the money - by Konstantinos - 11.11.2012, 12:52
Re: The player with the money - by Ludek - 11.11.2012, 13:03
Re: The player with the money - by Abhishek. - 11.11.2012, 13:03

Forum Jump:


Users browsing this thread: 2 Guest(s)