[AJUDA] Problema com uma CallBack - Loteria!
#3

Exatamente amigгo, a de Admins foi minha base, mas nгo tem jeito veio, dб uma olhada:

pawn Код:
if (strcmp(cmd, "/admins1", true) == 0)
    {
        new count = 0;
        if(IsPlayerConnected(playerid))
        {
            SendClientMessage(playerid, COLOR_RED, " ");
            SendClientMessage(playerid, COLOR_YELLOW2, "||==========| ADMINS  ONLINE |==========||");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] != 7 && Afk[i] ==0 && PlayerInfo[playerid][pMascarado] == 0)
                    {
                        new admtext[40];
                        if(PlayerInfo[i][pAdmin] == 6) { admtext = "{EEDD82}Proprietбrio{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 5) { admtext = "{EEDD82}Elite{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 4) { admtext = "{EEDD82}Sub-Elite{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 3) { admtext = "{EEDD82}Moderador{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 2) { admtext = "{EEDD82}Sub-Moderador{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 1) { admtext = "{EEDD82}Recruta{FFFFFF}"; }
                        GetPlayerName(i, sendername, sizeof(sendername));
                        if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 6 && PlayerInfo[i][pMascarado] == 0)
                        {
                            format(string, 80, "|| %s (%s) - Disponнvel", sendername, admtext);
                            SendClientMessage(playerid, COLOR_WHITE, string);
                            count++;
                        }

                    }
                    if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] != 7 && Afk[i]==1 && PlayerInfo[i][pMascarado] == 0)
                    {
                        new admtext[40];
                        if(PlayerInfo[i][pAdmin] == 6) { admtext = "{EEDD82}Proprietбrio{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 5) { admtext = "{EEDD82}Elite{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 4) { admtext = "{EEDD82}Sub-Elite{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 3) { admtext = "{EEDD82}Moderador{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 2) { admtext = "{EEDD82}Sub-Moderador{FFFFFF}"; }
                        else if(PlayerInfo[i][pAdmin] == 1) { admtext = "{EEDD82}Recruta{FFFFFF}"; }
                        GetPlayerName(i, sendername, sizeof(sendername));
                        if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 6 && PlayerInfo[playerid][pMascarado] == 0)
                        {
                            format(string, 80, "|| %s (%s) - Ausente", sendername, admtext);
                            SendClientMessage(playerid, COLOR_WHITE, string);
                            count++;
                            PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
                        }
                    }

                }
            }
        }
        if(count == 0)
        SendClientMessage(playerid, COLOR_YELLOW2, "||       Nгo hб Admins online no momento!      ||");
        PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
        return SendClientMessage(playerid, COLOR_YELLOW2, "||===================================||");
    }
Reply


Messages In This Thread
[AJUDA] Problema com uma CallBack - Loteria! - by [DkS]JR_Junior - 02.10.2012, 00:27
Re: [AJUDA] Problema com uma CallBack - Loteria! - by arakuta - 02.10.2012, 00:29
Re: [AJUDA] Problema com uma CallBack - Loteria! - by [DkS]JR_Junior - 02.10.2012, 00:33
Re: [AJUDA] Problema com uma CallBack - Loteria! - by arakuta - 02.10.2012, 01:04
Re: [AJUDA] Problema com uma CallBack - Loteria! - by ForT - 02.10.2012, 02:10
Re: [AJUDA] Problema com uma CallBack - Loteria! - by [DkS]JR_Junior - 05.10.2012, 16:07

Forum Jump:


Users browsing this thread: 1 Guest(s)