03.05.2015, 14:33
Код:
Code: CMD:admins(playerid) { if(HaveAdminsOnline()) { SendClientMessage(playerid,informacao,"Admin(s) Online:"); new adm[15], frase[128], frasefinal[512];//ad[45]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Player[i][admin] != 0) { switch(Player[i][admin]) { case 1: adm = "Novato"; case 2: adm = "Intermediario"; case 3: adm = "Veterano"; case 10: adm = "Master"; case 11: adm = "Dono RCON"; } format(frase, sizeof(frase), "[ADMIN]~ %s [%s]\n", GetName(i), adm); strcat(frasefinal, frase); } } } ShowPlayerDialog(playerid, DIALOG_ADMINSON, DIALOG_STYLE_MSGBOX, "Administradores Online", frasefinal, "OK", ""); } else SendClientMessage(playerid,informacao,"Nгo hб admins online!"); return 1; }