11.12.2016, 15:53
Код:
if(!strcmp(cmd, "/admins", true) || !strcmp(cmd, "/mods", true) || !strcmp(cmd, "/administradores", true) || !strcmp(cmd, "/moderadores", true)) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(aInfo[i][Admin] == 1 || aInfo[i][Moderador] == 1 || aInfo[i][Ajudante] == 1 || AdminAFK[i] == 0 || AdminAFK[i] == 1) { new admin[2500]; if(aInfo[i][Admin] == 1 && DOF2_GetInt(f(i), "AdminL") == 0 && AdminAFK[i] == 0) { admin = "[ {009C15}Administrador {FFFFFF}] [ {009C15}Online {FFFFFF}]"; } if(aInfo[i][Admin] == 1 && DOF2_GetInt(f(i), "AdminL") == 0 && AdminAFK[i] == 0) { admin = "[ {009C15}Administrador {FFFFFF}] [ {FF0000}AFK {FFFFFF}]"; } else if(aInfo[i][Moderador] == 1 && AdminAFK[i] == 0) { admin = "[ {009C15}Moderador {FFFFFF}] [ {009C15}Online {FFFFFF}]"; } else if(aInfo[i][Moderador] == 1 && AdminAFK[i] == 1) { admin = "[ {009C15}Moderador {FFFFFF}] [ {FF0000}AFK {FFFFFF}]"; } else if(aInfo[i][Ajudante] == 1 && AdminAFK[i] == 0) { admin = "[ {009C15}Ajudante {FFFFFF}] [ {009C15}Online {FFFFFF}]"; } else if(aInfo[i][Ajudante] == 1 && AdminAFK[i] == 1) { admin = "[ {009C15}Ajudante {FFFFFF}] [ {FF0000}AFK {FFFFFF}]"; } else if(DOF2_GetInt(f(i), "AdminL") == 1 && aInfo[i][Admin] == 1 && AdminAFK[i] == 0) { admin = "[ {009C15}Fundador {FFFFFF}] [ {009C15}Online {FFFFFF}]"; } else if(DOF2_GetInt(f(i), "AdminL") == 1 && aInfo[i][Admin] == 1 && AdminAFK[i] == 1) { admin = "[ {009C15}Fundador {FFFFFF}] [ {FF0000}AFK {FFFFFF}]"; } GetPlayerName(i, sendername, sizeof(sendername)); format(string, sizeof(string), "%s{FFFFFF}%s[%d] %s %s \n", string, sendername, i, admin); //admin, sendername, i } } } ShowPlayerDialog(playerid, MENUADMINS, DIALOG_STYLE_MSGBOX, "Administradores online:", string, "Fechar", ""); } return 1; }