12.07.2012, 11:40
pawn Код:
command(admins, playerid)
{
new longstring[200], shortstring[30], Count = 0, pName[25];
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
Count ++;
GetPlayerName(i, pName, 25);
format(shortstring, sizeof shortstring, "%s (ID:%d) \n", pName, i);
strcat(longstring,shortstring);
}
}
format(shortstring, sizeof shortstring, "%d admins online", Count);
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Online Admins", longstring, "Ok", "");
return 1;
}