[Ajuda] Comando /cv ADM
#2

pawn Код:
dcmd_cv(playerid, params[])
    {
        if(Player[playerid][pAdmin] < 1 && Player[playerid][pEnigma] < 1)
            return SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo tem permissгo para usar este comando!");

        if(!strlen(params))
            return SendClientMessage(playerid, COLOR_GREY, "[USE] /cv <texto>");

        if(Player[playerid][pEnigma] > 0)
            format(thestring, sizeof(thestring), "[Enigma %d]: %s", Player[playerid][pEnigma], params);
        else
        {
            if(Player[playerid][pAdmin] == 1)
                format(thestring, sizeof(thestring), "{EA0000}[Helper]{FFFFFF} %s: %s",Player[playerid][pName],params);
            else if(Player[playerid][pAdmin] == 2)
                format(thestring, sizeof(thestring), "{02AF00}[Moderador]{FFFFFF} %s: %s",Player[playerid][pName],params);
            else if(Player[playerid][pAdmin] == 3)
                format(thestring, sizeof(thestring), "{000B75}[Admin Level 1]{FFFFFF} %s: %s",Player[playerid][pName],params);
            else if(Player[playerid][pAdmin] == 4)
                format(thestring, sizeof(thestring), "{420031}[Admin Level 2]{FFFFFF} %s: %s",Player[playerid][pName],params);
            else if(Player[playerid][pAdmin] == 5)
                format(thestring, sizeof(thestring), "{EDED00}[Admin de Confianзa]{FFFFFF} %s: %s",Player[playerid][pName],params);
            else if(Player[playerid][pAdmin] == 6)
                format(thestring, sizeof(thestring), "{00E5FF}[GM]{FFFFFF} %s: %s",Player[playerid][pName],params);
            else if(Player[playerid][pAdmin] == 7)
                format(thestring, sizeof(thestring), "{1C0F00}[GA]{FFFFFF} %s: %s",Player[playerid][pName],params);
            else if(Player[playerid][pAdmin] == 8)
                format(thestring, sizeof(thestring), "{FC00F8}[Admin RCON]{FFFFFF} %s: %s",Player[playerid][pName],params);
        }
        SendClientMessageToAll(COLOR_ADMIN,thestring);
        WriteLog("admins", thestring);
        return 1;
    }
Espero ter ajudado.
Reply


Messages In This Thread
[Ajuda] Comando /cv ADM - by Spencer1 - 03.03.2012, 11:45
Re: Comando /cv ADM - by DouglasRodrigues - 03.03.2012, 13:53

Forum Jump:


Users browsing this thread: 2 Guest(s)