random vehicle colors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: random vehicle colors (
/showthread.php?tid=131701)
random vehicle colors -
aircombat - 04.03.2010
is there a function for random paintjob for cars?? like pay 'n' spray ?
________
Cl77
Re: random vehicle colors -
Desert - 04.03.2010
There may be a include or something familiar where you can find it. Else you could make your own using random
Re: random vehicle colors -
Andy_McKinley - 04.03.2010
I only know that you can set car colours with this:
pawn Код:
new Car = AddStaticVehicle(id, coцrdinates);
ChangeVehicleColour(vehicleid, color1, color2);
Re: random vehicle colors -
Fedee! - 04.03.2010
pawn Код:
new vehicle;
new Float:rand[][1] =
{
{0},
{1},
{2},
{4},
{8}
};
///////////////////////////////////////////////////////////////
vehicle = AddStaticVehicle(modelid, x, y, z, rot, -1, -1);
ChangeVehiclePaintjob(vehicle,rand);
It should work.. not tested altough.
Re: random vehicle colors -
Miguel - 04.03.2010
Sorry, I posted a wrong code...
Re: random vehicle colors -
aircombat - 04.03.2010
nvm
________
Ferrari F1 642 Specifications