- 0
Ajutor comanda richlist
-
Similar Content
-
- 2 replies
- 80 views
-
Ajutor
By O dai cu So2,
- 1 reply
- 303 views
-
- 3 replies
- 208 views
-
- 4 replies
- 146 views
-
- 1 reply
- 114 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
alexutu
Salutare Sa-Mp.ro ma puteti ajuta ca sa tranform aceasta comanda
[pawn] if (strcmp(cmd, "/richlist", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GREY, "** You're no authorized to use that command . ");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FF2C00}[AdmWarning]: {33FF33}%s {FFFFFF}Has Checked For Rich Users Online.", sendername);
ABroadCast(COLOR_LIGHTRED, string, 5);
SendClientMessage(playerid, COLOR_LIGHTRED, "Rich Users online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerMoney(i) >= 5000000 || PlayerInfo[pAccount] >= 5000000)
{
GetPlayerName(i, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, 128, "%s (%d) - In Hand: $%d | In Bank: $%d", sendername, i, GetPlayerMoney(i), PlayerInfo[pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
}
}
return 1;
}
[/pawn]
sa poata fi folosita de toti playeri,iar aceasta sa le arata top 10 cei maai bogati playeri acestea fin clasificati in functie de bani. Sa scrie ceva de genul
1.Shyft Portofel 1000 Banca 2000
2.x Portofel 900 Banca 1000
(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??
Link to comment
Share on other sites
7 answers to this question
Recommended Posts