[Ajuda] Comando /admins
#2

tenta
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new count = 0;
            SendClientMessage(playerid, COLOR_GREEN, "____________________[ Administradores em serviзo ]____________________");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pAdmin] >= 1 && AdminDuty[i] == 1)
                    {
                        new admtext[64];
                        if(PlayerInfo[i][pAdmin] == 2012) { admtext = "Admin Dono 2012"; }
                        else if(PlayerInfo[i][pAdmin] == 4) { admtext = "Administrador Superior 4"; }
                        else if(PlayerInfo[i][pAdmin] == 3) { admtext = "Administrador Nivel 3"; }
                        else if(PlayerInfo[i][pAdmin] == 2) { admtext = "Moderador Nivel 2"; }
                        else if(PlayerInfo[i][pAdmin] == 1) { admtext = "Moderador Nivel 1"; }
                        else { admtext = "Moderador Nivel 1"; }
                        GetPlayerName(i, sendername, sizeof(sendername));
                        if(AdminDuty[i] == 0)
                   
                        count++;
                    }
                }
            }
            if(count == 0)
            {
                SendClientMessage(playerid,COLOR_WHITE,"[INFO:] Nгo hб administrador em serviзo.");
            }
            SendClientMessage(playerid, COLOR_GREEN, "___________________________________________________________________");
        }
        return 1;
    }
Reply


Messages In This Thread
[Ajuda] Comando /admins - by Slayer1 - 16.10.2011, 23:16
Re: [Ajuda] Comando /admins - by ceesar90 - 16.10.2011, 23:22
Re: [Ajuda] Comando /admins - by Slayer1 - 16.10.2011, 23:25
Re: [Ajuda] Comando /admins - by ceesar90 - 17.10.2011, 00:01
Re: [Ajuda] Comando /admins - by Lуs - 17.10.2011, 01:26
Re: [Ajuda] Comando /admins - by Slayer1 - 17.10.2011, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)