[Ajuda] Sistema de /asay
#4

pawn Код:
if(strcmp(cmd, "/asay", true) == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        new length = strlen(cmdtext);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        while ((idx < length) && (cmdtext[idx] <= ' '))
        {
            idx++;
        }
        new offset = idx;
        new result[64];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
        {
            result[idx - offset] = cmdtext[idx];
            idx++;
        }
        result[idx - offset] = EOS;
        if(!strlen(result) && PlayerInfo[playerid][pAdmin] >= 1)
        {
            SendClientMessage(playerid, AZULCLARO, "Uso correto: /asay [texto]");
            return 1;
        }
        if(logado[playerid] == 1)
        {
        if(PlayerInfo[playerid][pVip] >= 0)
        {
        if(PlayerInfo[playerid][pVip] >= 1)
                format(string, sizeof(string), "[CLOBAL VIP]: %s: %s", sendername, result);
                SendClientMessageToAll(0xF6EE06,string);
                if(PlayerInfo[playerid][pPolicial] >= 1)
                format(string, sizeof(string), "[GLOBAL POLICIA] %s: %s", sendername, result);
                SendClientMessageToAll(0x2641FEAA,string);
                if(PlayerInfo[playerid][pTrafico] >= 1)
                format(string, sizeof(string), "[GLOBAL TRAFICANTE] %s: %s", sendername, result);
                SendClientMessageToAll(0xAA3333AA,string);
                if(PlayerInfo[playerid][pAdmin] >= 1)
                format(string, sizeof(string), "Adminstrador %s: %s", sendername, result);
                SendClientMessageToAll(0x2D2DFFAA,string);
                new PlayerName[30];
                GetPlayerName(playerid, PlayerName, 30);
                printf("[Command] %s usou /asay para mandar a menssagem: %s", PlayerName, result);
                return 1;
            }


        }
        else
        {
            SendClientMessage(playerid, VERMELHO, "Vocк tem que estar logado para usar este comando!");
        }
        return 1;
    }
Mudei a cor dos vips pra outra, porquк os codes das cores que vocк queria jб estavam setados, mas o vip e o da Policia estavam iguais.

PHP код:
Nova cor dos vips que coloquei й #F6EE06 
Reply


Messages In This Thread
Sistema de /asay - by Fox.CZL - 02.01.2013, 04:18
Re: Sistema de /asay - by Mteck - 02.01.2013, 05:06
Re: Sistema de /asay - by Fox.CZL - 02.01.2013, 05:43
Re: Sistema de /asay - by Mteck - 02.01.2013, 06:02
Re: Sistema de /asay - by Galhardo - 02.01.2013, 15:17
Re: Sistema de /asay - by Fox.CZL - 02.01.2013, 15:41
Re: Sistema de /asay - by Miqueias Barros - 02.01.2013, 15:45
Re: Sistema de /asay - by Fox.CZL - 02.01.2013, 15:49
Re: Sistema de /asay - by Miqueias Barros - 02.01.2013, 15:56
Re: Sistema de /asay - by Galhardo - 02.01.2013, 16:12

Forum Jump:


Users browsing this thread: 1 Guest(s)