Help top
#1

Who can help me to give me server top 10 players with more money

for example:

On this list you will found to moust rich players of this server

.1 Player Name - Money he have
.2
.3
.4
.5
...
Reply
#2

http://forum.sa-mp.com/showpost.php?...2&postcount=44
Reply
#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
#4

Quote:
Originally Posted by StR_MaRy
Посмотреть сообщение
use this
Man, that's not a ranking and i don't think your gamemode script would be compatible with his.
And... begin indenting your code, because it's unreadable.

Suggest you working with this include: https://sampforum.blast.hk/showthread.php?tid=361560
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)