27.03.2018, 14:43
Quote:
Код:
CMD:admins() { new string[1000],adminname[MAX_PLAYER_NAME], AdminsOnLine; for(new i=0; i<MAX_PLAYERS; i++){ if(!IsPlayerConnected(i) && Admin[i] == 0) continue; AdminsOnLine++; } if(AdminsOnLine > 0){ format(string, sizeof(string),"Admins is online (%d)", AdminsOnLine); }else format(string, sizeof(string),"Admins are not online!", AdminsOnLine); for(new i=0; i<MAX_PLAYERS; i++) { if(!IsPlayerConnected(i) && Admin[i] == 0) continue; GetPlayerName(i,adminname, sizeof(adminname)); format(string, sizeof(string),"%s\n %s(ID:%i) - {FF0000}Level: %i{FFFFFF}\n",string, adminname, i,Admin[i]); } return ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"O nline Admins",string,"OK",""); } |