- 0
/top in ordine descendenta
-
Similar Content
-
- 17 replies
- 1,348 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
MihaiGG
salut, as dori un sfat sau o parere cum as putea face comanda /top in ordine descrescatoare, mafia cu cele mai multe turfuri sa fie afisata prima si cea cu cele mai putine ultima
CMD:top(playerid, params[]) {
new
p=0,t=0,s=0,r=0,a=0, b=0,x = 0, y = 0, z = 0;
foreach(new i : GangTurfs) {
if(TurfInfo[i][zOwned] == 15) t++;
if(TurfInfo[i][zOwned] == 16) p++;
if(TurfInfo[i][zOwned] == 17) s++;
if(TurfInfo[i][zOwned] == 18) r++;
if(TurfInfo[i][zOwned] == 19) a++;
if(TurfInfo[i][zOwned] == 20) b++;
if(TurfInfo[i][zOwned] == 21) x++;
if(TurfInfo[i][zOwned] == 22) y++;
if(TurfInfo[i][zOwned] == 23) z++;
}
SendClientMessage(playerid,COLOR_WHITE,"---------- Top Gangs ----------");
SendClientMessage(playerid,COLOR_WHITE, "{%s}%s {FFFFFF}- %d turfs", GetFactionColor(15), FactionName(15), t);
SendClientMessage(playerid,COLOR_WHITE, "{%s}%s {FFFFFF}- %d turfs", GetFactionColor(16), FactionName(16), p);
SendClientMessage(playerid,COLOR_WHITE, "{%s}%s {FFFFFF}- %d turfs", GetFactionColor(17), FactionName(17), s);
SendClientMessage(playerid,COLOR_WHITE, "{%s}%s {FFFFFF}- %d turfs", GetFactionColor(18), FactionName(18), r);
SendClientMessage(playerid,COLOR_WHITE, "{%s}%s {FFFFFF}- %d turfs", GetFactionColor(19), FactionName(19), a);
SendClientMessage(playerid,COLOR_WHITE, "{%s}%s {FFFFFF}- %d turfs", GetFactionColor(20), FactionName(20), b);
SendClientMessage(playerid,COLOR_WHITE, "{%s}%s {FFFFFF}- %d turfs", GetFactionColor(21), FactionName(21), x);
SendClientMessage(playerid,COLOR_WHITE, "{%s}%s {FFFFFF}- %d turfs", GetFactionColor(22), FactionName(22), y);
SendClientMessage(playerid,COLOR_WHITE, "{%s}%s {FFFFFF}- %d turfs", GetFactionColor(23), FactionName(23), z);
SendClientMessage(playerid,COLOR_WHITE,"-------------------------------------");
return 1;
}
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.