Why this not working?? | rep++
#7

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?

Код:
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;
}
Reply


Messages In This Thread
Why this not working?? | rep++ - by TiXz0r - 13.05.2015, 13:55
Re: Why this not working?? | rep++ - by Dokins - 13.05.2015, 14:00
Re: Why this not working?? | rep++ - by TiXz0r - 13.05.2015, 14:02
Re: Why this not working?? | rep++ - by Dokins - 13.05.2015, 14:03
Re: Why this not working?? | rep++ - by TiXz0r - 13.05.2015, 14:05
Re: Why this not working?? | rep++ - by Dokins - 13.05.2015, 14:07
Re: Why this not working?? | rep++ - by TiXz0r - 13.05.2015, 14:09
Re: Why this not working?? | rep++ - by Dokins - 13.05.2015, 14:10

Forum Jump:


Users browsing this thread: 3 Guest(s)