[Ajuda] /Admins em dialog nгo mostra tudo.
#2

Код:
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; 
}
Reply


Messages In This Thread
/Admins em dialog nгo mostra tudo. - by Luiiiz - 11.12.2016, 15:42
Re: /Admins em dialog nгo mostra tudo. - by Relaxed - 11.12.2016, 15:53
Re: /Admins em dialog nгo mostra tudo. - by Luiiiz - 11.12.2016, 16:03
Re: /Admins em dialog nгo mostra tudo. - by HeisenGiromB - 11.12.2016, 16:05
Re: /Admins em dialog nгo mostra tudo. - by Luiiiz - 11.12.2016, 16:27
Re: /Admins em dialog nгo mostra tudo. - by LockedLucas - 11.12.2016, 16:37
Re: /Admins em dialog nгo mostra tudo. - by Luiiiz - 11.12.2016, 16:39
Re: /Admins em dialog nгo mostra tudo. - by Relaxed - 11.12.2016, 16:42
Re: /Admins em dialog nгo mostra tudo. - by Luiiiz - 11.12.2016, 16:45
Respuesta: /Admins em dialog nгo mostra tudo. - by OverKiller - 11.12.2016, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)