08.11.2014, 11:57
This should work..
pawn Код:
dcmd_admins(playerid,params[])
{
#pragma unused params
new count=0,string[1028],rank[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && GetInfo(i,"AdminLevel")>= 1)
{
format(string, 1028, "%s{FF02A7}%s {ffffff}Level: %d", string, AdminName(i),GetInfo(i,"AdminLevel"));
count++;
}
}
if (count == 0) SendClientMessage(playerid,LIGHTBLUE,"{FF02A7}[Admin]:{ffffff}There Are no Admins Online");
else if(count != 0) ShowPlayerDialog(playerid, 5559, DIALOG_STYLE_MSGBOX, "Online administrator", string, "Close", "");
return 1;
}

