[Ajuda] Pintar [ID] [ID]
#10

pawn Код:
new cmd[64],idx;
    cmd = strtok(cmdtext, idx);

    if(strcmp(cmd, "/pintar", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new
                string[128],
                tmp[64];
            tmp = strtok(cmdtext, idx);
            new
                tmp2 = strval(tmp);
            ChangeVehicleColor(GetPlayerVehicleID(playerid),tmp2,tmp2);
            format(string, sizeof(string),"Cor do seu carro foi mudada para: %i",tmp2);
            SendClientMessage(playerid, 0xF60000AA, string);
        }
        else return SendClientMessage(playerid, 0xF60000AA, "Erro: Vocк nгo ta em nenhum veнculo man!");
        return 1;
    }
Pronto, deixei esse ai mesmo ^^
Reply


Messages In This Thread
Pintar [ID] [ID] - by jonathan_agv - 08.01.2014, 21:08
Re: Pintar [ID] [ID] - by Gii - 08.01.2014, 21:26
Re: Pintar [ID] [ID] - by jonathan_agv - 08.01.2014, 22:13
Re: Pintar [ID] [ID] - by GodsAndMonsters - 08.01.2014, 22:15
Re: Pintar [ID] [ID] - by jonathan_agv - 08.01.2014, 22:19
Re: Pintar [ID] [ID] - by Gii - 08.01.2014, 22:28
Re: Pintar [ID] [ID] - by jonathan_agv - 08.01.2014, 22:36
Re: Pintar [ID] [ID] - by jonathan_agv - 08.01.2014, 22:51
Re: Pintar [ID] [ID] - by jonathan_agv - 08.01.2014, 22:57
Re: Pintar [ID] [ID] - by jonathan_agv - 08.01.2014, 23:02

Forum Jump:


Users browsing this thread: 1 Guest(s)