sʟ│Eá´á´ wrote on May 6, 2018, 6:49 pm:
https://pastebin.com/0pV0k8Du
Naš forum je uspješno migriran na novu platformu. Svi vaši podaci, računi i sadržaj su prebačeni na GTABLKN.
graph designer
enum {
DIALOG_BOGATI }
CMD:toprich(playerid)
{
new string, Slot1 = -1, Slot2 = -1, Slot3 = -1;
new HighestCash = -9999;
foreach(new x : Player)
{
if(GetPlayerCash(x) >= HighestCash)
{
HighestCash = GetPlayerCash(x);
Slot1 = x;
}
}
HighestCash = -9999;
foreach(new x : Player)
{
if(x != Slot1)
{
if(GetPlayerCash(x) >= HighestCash)
{
HighestCash = GetPlayerCash(x);
Slot2 = x;
}
}
}
HighestCash = -9999;
foreach(new x : Player)
{
if(x != Slot1 && x != Slot2)
{
if(GetPlayerCash(x) >= HighestCash)
{
HighestCash = GetPlayerCash(x);
Slot3 = x;
}
}
}
format(string, sizeof(string), "ID\tIgrac\tNovac\n{00FF00}1\t{ffffff}%s\t{008000}%d\n", GetName(Slot1),GetPlayerCash(Slot1));
if(Slot2 != -1)
{
format(string, sizeof(string), "%s{00FF00}2\t{ffffff}%s\t{008000}%d\n", string, GetName(Slot2),GetPlayerCash(Slot2));
}
if(Slot3 != -1)
{
format(string, sizeof(string), "%s{00FF00}3\t{ffffff}%s\t{008000}%d\n", string, GetName(Slot3),GetPlayerCash(Slot3));
}
ShowPlayerDialog(playerid, DIALOG_BOGATI, DIALOG_STYLE_TABLIST_HEADERS, "Najjbogatiji ljudi", string, "Zatvori", "");
return 1;
}
graph designer
graph designer
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava