27.05.2016, 14:56
Hello, I'm using JakAdmin and Command /admins is SendClientMessage so i want it in dialog.
Who can help me?
This is the command:
I tried but it's shows the last admin logged in
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;
}


