10.04.2014, 07:45
pawn Код:
CMD:admins(playerid, params[])
{
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0)
{
new string[128];
if(PlayerInfo[i][pAdminDuty] == 1) { format(string, sizeof(string), "%d: {00FF00}%s", GetPlayerAdminLevel(i), GetPlayerNameEx(i)); }
if(PlayerInfo[i][pAdminDuty] == 0) { format(string, sizeof(string), "%d: {FF0000}%s", GetPlayerAdminLevel(i), GetPlayerNameEx(i)); }
ShowPlayerDialog(playerid, 4458, DIALOG_STYLE_MSGBOX, "Online Admins", string, "Okay", "");
}
}
SendClientMessageEx(playerid, COLOR_GRAD1, "Have questions? Ask on /n chat.");
SendClientMessageEx(playerid, COLOR_GRAD1, "If you need to report about something, type /report [id] [reason].");
return 1;
}