Vehicle color and paintjob!
#3

These shouldn't be strings, but integers;
pawn Код:
vcolor1,
vcolor2,
paintjob,
It's pretty simple;
pawn Код:
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
VehicleInfo[vehicleid][paintjob] = paintjobid;
return 1;
}
As for vehicles colours;
pawn Код:
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
VehicleInfo[vehicleid][vcolor1] = color1;
VehicleInfo[vehicleid][vcolor2] = color2;
return 1;
}
Just change "VehicleInfo" to your vehicles enum variable.
Reply


Messages In This Thread
Vehicle color and paintjob! - by kalanerik99 - 20.05.2015, 17:46
Re: Vehicle color and paintjob! - by kyriakos587 - 20.05.2015, 17:53
Re: Vehicle color and paintjob! - by Luis- - 20.05.2015, 17:56
Re: Vehicle color and paintjob! - by Konstantinos - 20.05.2015, 17:58
Re: Vehicle color and paintjob! - by kalanerik99 - 20.05.2015, 17:59
Re: Vehicle color and paintjob! - by kalanerik99 - 20.05.2015, 18:01
Re: Vehicle color and paintjob! - by kyriakos587 - 20.05.2015, 18:05
Re: Vehicle color and paintjob! - by kalanerik99 - 20.05.2015, 18:06
Re: Vehicle color and paintjob! - by Konstantinos - 20.05.2015, 18:15
Re: Vehicle color and paintjob! - by kalanerik99 - 20.05.2015, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)