24.01.2013, 20:24
pawn Код:
CMD:admins(playerid,params[])
{
new Count = 0;
new string[100], n[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][Level] > 0)
{
GetPlayerName(i,n,sizeof(n));
format(string,sizeof(string),"Level %d: %s (ID: %d) - %s", PlayerInfo[i][Level], n, i, GetRankFromLevel(i));
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX, "Online Admins...", string, "ok", "");
Count++;
}
}
if(Count == 0)
{
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_MSGBOX,"Online Admins...", "There Are No Administrators Online.", "ok", "");
}
return 1;
}