COMMAND /admins in Dialog Please
#1

Hello, I'm using JakAdmin and Command /admins is SendClientMessage so i want it in dialog.
Who can help me?

This is the command:


Код:
CMD:admins(playerid, params[])
{
	new string[128], count = 0;
	
	SendClientMessage(playerid, -1, "** "orange"Online Administrators "white"**");
	foreach(new i : Player)
	{
	    if(User[i][accountLogged] == 1)
	    {
	        if(User[i][accountAdmin] >= 1)
	        {
	            format(string, sizeof(string), "(%d) %s - Level %d Admin", i, pName(i), User[i][accountAdmin]);
	            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	            count++;
	        }
	    }
	}
	if(count == 0) return SendClientMessage(playerid, -1, "No administrators online at the server.");
	return 1;
}
I tried but it's shows the last admin logged in
Reply


Messages In This Thread
COMMAND /admins in Dialog Please - by Twiix - 27.05.2016, 14:56
Re: COMMAND /admins in Dialog Please - by SyS - 27.05.2016, 14:59
Re: COMMAND /admins in Dialog Please - by Twiix - 27.05.2016, 15:23
Re: COMMAND /admins in Dialog Please - by SyS - 27.05.2016, 15:25
Re: COMMAND /admins in Dialog Please - by Twiix - 27.05.2016, 15:40
Re: COMMAND /admins in Dialog Please - by luke49 - 27.05.2016, 17:19
Re: COMMAND /admins in Dialog Please - by Sew_Sumi - 27.05.2016, 17:41
Re: COMMAND /admins in Dialog Please - by Twiix - 27.05.2016, 18:47
Re: COMMAND /admins in Dialog Please - by jlalt - 27.05.2016, 18:54
Re: COMMAND /admins in Dialog Please - by Twiix - 27.05.2016, 19:01

Forum Jump:


Users browsing this thread: 2 Guest(s)