Choose colour for vehicle in-game
#2

PHP код:
CMD:colorcar(playeridparams[])
{
    new 
color[2];
    if(
sscanf(params,"dD",color[0],color[1]))
    {
        return 
SendClientMessage(playerid, -1"USAGE: /colorcar [color1] [color2]");
    }
    new
        
string[128];
    
format(stringsizeof(string), "You have change the vehicle's color 1 to %d and color 2 to %d!",color[0],color[1]);
    
SendClientMessage(playerid, -1string);
     
ChangeVehicleColor(GetPlayerVehicleID(playerid),color[0],color[1]);
     return 
1;

change the name or the command to whatever you want, I just showed an example of what I think you wanted.
Reply


Messages In This Thread
Choose colour for vehicle in-game - by Jonesy96 - 11.07.2016, 08:41
Re: Choose colour for vehicle in-game - by Quinncell - 11.07.2016, 08:51
Re: Choose colour for vehicle in-game - by Jonesy96 - 11.07.2016, 08:55
Re: Choose colour for vehicle in-game - by Quinncell - 11.07.2016, 08:57
Re: Choose colour for vehicle in-game - by Jonesy96 - 11.07.2016, 09:00
Re: Choose colour for vehicle in-game - by Quinncell - 11.07.2016, 09:03
Re: Choose colour for vehicle in-game - by Konstantinos - 11.07.2016, 09:04
Re: Choose colour for vehicle in-game - by Jonesy96 - 11.07.2016, 09:08
Re: Choose colour for vehicle in-game - by Quinncell - 11.07.2016, 09:10
Re: Choose colour for vehicle in-game - by Jonesy96 - 11.07.2016, 09:10

Forum Jump:


Users browsing this thread: 1 Guest(s)