SA-MP Forums Archive
Spawn vehicles with random color problem - 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)
+--- Thread: Spawn vehicles with random color problem (/showthread.php?tid=613261)



Spawn vehicles with random color problem - MayaEU - 26.07.2016

Can anyone tell me why these vehicles doesnt spawn with random colors but, grey?
pawn Код:
AddStaticVehicleEx(453,891.063000,-1915.870,0.095,169.00000,-1,-1,600000);                          // Reefer
    AddStaticVehicleEx(453,883.716000,-1913.420,-0.010,158.70000,-1,-1,600000);                         // Reefer
    AddStaticVehicleEx(453,874.341000,-1914.240,-0.182,187.00000,-1,-1,600000);                         // Reefer
    AddStaticVehicleEx(453,864.642000,-1913.300,-0.176,200.00000,-1,-1,600000);                         // Reefer
    AddStaticVehicleEx(473,759.0700000,-2955.1757,0.3791,90.00000,-1,-1,600000);                            // Dinghy
    AddStaticVehicleEx(473,707.3858000,-2933.1916,-0.4783,125.00000,-1,-1,600000);                      // Dinghy
    AddStaticVehicleEx(453,626.740000,-2972.160,-1.008 ,350.0000,-1,-1,600000);                         // Reefer
    AddStaticVehicleEx(473,714.0844000,-3035.7060,0.3923,10.55000,-1,-1,600000);                            // Dinghy



Re: Spawn vehicles with random color problem - Dejan12345 - 26.07.2016

how i know venhicles cant spawn with random color go to mta sa and create venhicles with color you want


Re: Spawn vehicles with random color problem - MayaEU - 26.07.2016

They can, i have done that many times before. but these just wont spawn with random clolors


Re: Spawn vehicles with random color problem - Dejan12345 - 26.07.2016

i try for my server but dont work with random color


Re: Spawn vehicles with random color problem - Dejan12345 - 26.07.2016

bro try this code
Код:
 CreateVehicle(modelid, x, y, z, angle, random(255), random(255), 60);



Re: Spawn vehicles with random color problem - MayaEU - 26.07.2016

Quote:
Originally Posted by Dejan12345
Посмотреть сообщение
bro try this code
Код:
 CreateVehicle(modelid, x, y, z, angle, random(255), random(255), 60);
Thanks that worked! rep+


Re: Spawn vehicles with random color problem - Dejan12345 - 26.07.2016

np bro