[AJUDA] Comando /admins
#5

Dei uma pesquisada pelo fуrum e acabei por conseguir! Obrigado (:
pawn Код:
CMD:admins(playerid, params[])
{
        new count = 0;
        if(Login[playerid] == 0) return SendClientMessage(playerid, COR_BORDO, "[PT Life] Vocк nгo estб logado.");
        SendClientMessage(playerid, 0xFFF600FF, "|_________ Admins Online _________|");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            new admtext[64];
            new str[600], name[MAX_PLAYER_NAME];
            switch(PlayerInfo[i][pAdmin])
            {
                case 1: admtext = "nнvel 1";
                case 2: admtext = "nнvel 2";
                case 3: admtext = "nнvel 3";
                case 4: admtext = "nнvel 4";
                case 5: admtext = "nнvel 5";
                case 6: admtext = "GOD";
            }
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[i][pAdmin] >= 1)
                {
                    GetPlayerName(i, name, sizeof(name));
                    format(str, 128, "Administrador %s: %s\r\n", admtext, name);
                    SendClientMessage(playerid, -1, str);
                    count++;
                }
            }
        }
        if(count == 0) return SendClientMessage(playerid, 0x0000BBAA, "Nгo hб adminitradores online no momento!");
        return 1;
    }
Reply


Messages In This Thread
[AJUDA] Comando /admins - by Cheleber_Pausini - 23.06.2014, 10:09
Re: [AJUDA] Comando /admins - by CrazyHelp - 23.06.2014, 11:14
Re: [AJUDA] Comando /admins - by Cheleber_Pausini - 23.06.2014, 11:30
Re: [AJUDA] Comando /admins - by Cheleber_Pausini - 23.06.2014, 12:52
Re: [AJUDA] Comando /admins - by Cheleber_Pausini - 23.06.2014, 13:54
Re: [AJUDA] Comando /admins - by DarkBr - 07.03.2017, 00:36
Re: [AJUDA] Comando /admins - by Cheleber_Pausini - 07.03.2017, 01:00

Forum Jump:


Users browsing this thread: 1 Guest(s)