Posts: 473
Threads: 86
Joined: Mar 2012
Reputation:
0
Hi
Can some ne tell me how to make /admins command who will show you admins online and their id's and level in dialog msgbox
Posts: 91
Threads: 6
Joined: Apr 2013
Here its :-
pawn Код:
CMD:admins(playerid,params[])
{
new Count, string[128],n[MAX_PLAYER_NAME];
SendClientMessage(playerid, COLOR_BLUE, "__________|Admins|__________");
foreach(Player, i)
{
if(pInfo[i][Adminlevel] >=1) {
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string)," %s ",n);
SendClientMessage(playerid,COLOR_WHITE,string);
Count++;
}
}
if(Count == 0) SendClientMessage(playerid, COLOR_WHITE, "No Admin Online");
SendClientMessage(playerid, COLOR_BLUE, "____________________________");
return 1;
}