25.07.2010, 15:40
pawn Код:
if (strcmp(cmd, "/admins", true) == 0) // Admin list if they're online
{
new string[256];
new pname[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i,pname,sizeof(pname));
if(AccountInfo[i][AdminLevel] > 0)
{
format(string,sizeof(string),"[ONLINE]: Name: %s Level: %d ID: %i\n",pname,AccountInfo[i][AdminLevel],i);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Online Admins",string,"Okay","Close");
}
}
return 1;
}