[AJUDA] Pintar
#8

Tenta esse:
pawn Код:
if(strcmp(cmd, "/pintar", true) == 0)
    {
        new
            cor1,
            cor2,
            idcarro
            s[256];
        ;
        idcarro = GetPlayerVehicleID(playerid);
        tmp = strtok(cmdtext,idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "* Uso: /pintar [cor1] [cor2]");
            return 1;
        }
        cor1 = strval(tmp);
        tmp = strtok(cmdtext,idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "* Uso: /pintar [cor1] [cor2]");
            return 1;
        }
        if(IsPlayerInAnyVehicle(playerid))
        {
            cor2 = strval(tmp);
            ChangeVehicleColor(idcarro, cor1, cor2);
            format(s, sizeof(s), "* Cores alteradas cor1: %d e cor2: %d.", cor1, cor2);
            SendClientMessage(playerid, 0xFFFFFFAA, s);
        }
        else
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "* Vocк nгo estб em um veнculo !");
        }
        return 1;
    }
Reply


Messages In This Thread
[AJUDA] Pintar - by [AF]Junior - 31.05.2011, 00:07
Re: [AJUDA] Pintar - by yiakin - 31.05.2011, 01:12
Re: [AJUDA] Pintar - by Ricop522 - 31.05.2011, 01:53
Re: [AJUDA] Pintar - by [AF]Junior - 31.05.2011, 15:34
Re: [AJUDA] Pintar - by ApolloRJ - 31.05.2011, 15:53
Re: [AJUDA] Pintar - by Shadoww5 - 31.05.2011, 16:30
Re: [AJUDA] Pintar - by ApolloRJ - 31.05.2011, 17:13
Re: [AJUDA] Pintar - by [NWD]Jim._.Carrey - 31.05.2011, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)