12.05.2018, 01:52
Tenta com esse:
Code:
COMMAND:admins(playerid, params[]) { new String[15], Nome[MAX_PLAYER_NAME], string[50], AdminList[400]; for(new j=GetPlayerPoolSize(),i; i!=j; ++i) { if( IsPlayerConnected(i) && Player[i][Admin] ) { GetPlayerName(i, Nome, sizeof Nome); switch(Player[ i ][Admin]) { case 1:String = "Administrador"; case 2:String = "Gerente"; case 3:String = "Fundador"; } format( string, sizeof string),"Nome %s ID %i Cargo %s\r\n", Nome, i, String); strcat( AdminList, string, sizeof AdminList); } if(!strlen(AdminList)) { SendClientMessage(playerid, 0xff0000ff,"[x] Nгo hб membros da administraзгo online no momento!"); } else { ShowPlayerDialog(playerid, 2345, DIALOG_STYLE_MSGBOX, "# Administraзгo",AdminList,"Fechar",#); } } return 1; }