CMD:admins
#1

Код:
CMD:admins(playerid, params[])
{
	new count = 0,
		string[128];
    foreach (new i : Player) if (PlayerData[i][pAdmin] > 0 && PlayerData[i][pAdminHide] < 1)
	{
        if (PlayerData[i][pAdminDuty])
			format(string,sizeof(string), "%s\t{33CC33}(Level: %d)\t {01DF01}(On Duty)\n", ReturnName(i, 0), PlayerData[i][pAdmin]);

		else
		    format(string,sizeof(string), "%s\t{33CC33}(Level: %d)\t {DF0101}(Off Duty)\n", ReturnName(i, 0), PlayerData[i][pAdmin]);

        count++;
	}
	if (!count) {
	    format(string,sizeof(string), "There's no online Administrators.");
	}
	Dialog_Show(playerid, AdminList, DIALOG_STYLE_TABLIST, "Adminitrators", string, "OK", "");
	return 1;
}
When I type /admins..it only show me if I am administrator, I cant see other administrators, wtf?
Reply


Messages In This Thread
CMD:admins - by Connor Smith - 28.03.2015, 10:20
Re: CMD:admins - by Sanady - 28.03.2015, 10:25
Re: CMD:admins - by fuckingcruse - 28.03.2015, 10:27
Re: CMD:admins - by Juvanii - 28.03.2015, 10:35
Re: CMD:admins - by Tihoy232 - 04.04.2018, 06:42
Re: CMD:admins - by Drak03 - 04.04.2018, 11:59
Re: CMD:admins - by ForCop - 05.04.2018, 07:56

Forum Jump:


Users browsing this thread: 1 Guest(s)