[Pedido] Comando de setar ADM
#6

pawn Код:
new Admin[MAX_PLAYERS];
pawn Код:
if(strcmp(cmd, "/admins", true) == 0)
    {
        SendClientMessage(playerid, 0xFF00FFFF, "________| ADMINS ONLINE |________");
        new string[100], n[24];
        for(new i = 0; i < MAX_PLAYERS; i ++)
        {
        if(Admin[i] > 0)
        {
                GetPlayerName(i, n, sizeof(n));
                if(AFK[i] == 1) { format(string, sizeof(string), " » %s - Level: %d {FF0522}[AFK]", n, Admin[i]); }
                else
                {
                    if(Servico[i] == 1) { format(string, sizeof(string), " » %s - Level: %d {00FF15}[EM SERVIЗO]", n, Admin[i]); }
                    else { format(string, sizeof(string), " » %s - Level: %d {7FFF00}[JOGANDO]", n, Admin[i]); }
                }
                SendClientMessage(playerid, -1, string);
            }
        }
        return 1;
    }
eu uso por nivel ;l
Reply


Messages In This Thread
[Pedido] Comando de setar ADM - by mateusmaia - 16.11.2011, 17:47
Re: Comando de setar ADM - by Mteck - 16.11.2011, 18:22
Re: Comando de setar ADM - by mateusmaia - 16.11.2011, 18:31
Re: Comando de setar ADM - by ViniBorn - 16.11.2011, 18:37
Re: Comando de setar ADM - by mateusmaia - 16.11.2011, 18:43
Re: Comando de setar ADM - by Mteck - 16.11.2011, 18:49
Re: Comando de setar ADM - by [KoS]Izaac - 16.11.2011, 18:56
Re: Comando de setar ADM - by mateusmaia - 16.11.2011, 19:03
Re: Comando de setar ADM - by [KoS]Izaac - 16.11.2011, 19:32
Re: Comando de setar ADM - by mateusmaia - 16.11.2011, 19:39

Forum Jump:


Users browsing this thread: 3 Guest(s)