28.03.2015, 10:35
pawn Код:
CMD:admins(playerid, params[])
{
new string[128];
foreach(new i : Player)
{
if (PlayerData[i][pAdmin] > 0 && PlayerData[i][pAdminHide] < 1)
{
if(PlayerData[i][pAdminDuty]) format(string,sizeof(string), "%s\t{33CC33}(Level: %d)\t {01DF01}(On Duty)\n%s", ReturnName(i, 0), PlayerData[i][pAdmin],string);
else format(string,sizeof(string), "%s\t{33CC33}(Level: %d)\t {DF0101}(Off Duty)\n%s", ReturnName(i, 0), PlayerData[i][pAdmin],string);
}
else format(string,sizeof(string), "There's no online Administrators.");
}
Dialog_Show(playerid, AdminList, DIALOG_STYLE_TABLIST, "Adminitrators", string, "OK", "");
return 1;
}