[Ajuda] Comando /admins
#2

pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
    {
        new count = 0;
        SendClientMessage(playerid, COLOR_GREEN, "____________________[ Admins em Serviзo ]____________________");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            new admtext[64];
            switch(PlayerInfo[i][pAdmin])
            {
                case 1337: admtext = "{00FF00}Dono";
                case 10: admtext = "Administrador - Nнvel 10";
                case 15: admtext = "Administrador - Nнvel 15";
                case 2: admtext = "Game-Master - Nнvel 2";
                case 5: admtext = "Game-Master - Nнvel 5";
                case 1: admtext = "Game-Master - Nнvel 1";
                default: admtext = "Moderador Nivel 1";
            }
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[i][pAdmin] >= 1 && AdminDuty[i] == 1)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    format(string, 128, "%s - [ %s {FFFAFA}]", sendername, admtext);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    count++;
                }
            }
        }
        if(count == 0) SendClientMessage(playerid,COLOR_RED,"[INFO:] De momento nгo estб nenhum membro da Staff em serviзo.");
        return SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________________________________");
    }
Reply


Messages In This Thread
[Ajuda] Comando /admins - by Slayer1 - 15.11.2011, 22:27
Re: [Ajuda] Comando /admins - by Pharrel - 15.11.2011, 22:30

Forum Jump:


Users browsing this thread: 1 Guest(s)