08.02.2015, 03:46
Код:
CMD:admins(playerid, params[]) { new MyStr[100]; new bool: ademir; for(new i, PP = GetMaxPlayers(); i < PP; ++i) { if(PlayerInfo[i][Admin] >= 1) { ademir = true; new PlayerNami[24]; GetPlayerName(i,PlayerNami,MAX_PLAYER_NAME); format(str, sizeof(str),"{80FF00}%s [ID:{FFFF00}%d{80FF00}] Level:{FFFF00}%d\n",PlayerNami,i,PlayerInfo[i][Admin]); new CBDStrLength = strlen(MyStr); strins(MyStr, str, CBDStrLength); } } if(!ademir) return ShowPlayerDialog(playerid,12,DIALOG_STYLE_MSGBOX,"Admins","{FF0000}Temos Nenhum Administrador Online!\nCaso Ver Algum Cheaters Denuncie\nEm Nossa Comunidade\nEquipe-cbd.blogspot.com.br","Ok",""); ShowPlayerDialog(playerid,13,DIALOG_STYLE_MSGBOX,"Admins",MyStr,"OK",""); return 1; }