13.05.2015, 14:09
Im maked this now xD but thank you im rep+
do you know how to make on command /admins, sort him to from higher level to smaller level?
do you know how to make on command /admins, sort him to from higher level to smaller level?
Код:
CMD:admins(playerid, params[]) { new string[256]; new fstring[64]; new adm = 0; foreach(Player, i) { if(PlayerInfo[i][pAdmin] > 0) adm++; { if(PlayerInfo[i][pAdmin] > 0) { format(fstring, sizeof(fstring),""COL_ORANGE"%s"COL_GREY" [ID: %d] [Admin Level: %d]\n", GetName(i), i, PlayerInfo[i][pAdmin]); strcat(string, fstring, sizeof(string)); } if(adm == 0) return SCM(playerid, COLOR_ORANGE, "[SERVER]: "COL_WHITE"Trenutno nema Admina/Gamemastera online!"); } } ShowPlayerDialog(playerid,DIALOG_ADMINSLISTP,DIALOG_STYLE_MSGBOX,""COL_ORANGE"ONLINE ADMINS",string,"ZATVORI",""); return 1; }