SA-MP Forums Archive
Number of 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)
+--- Thread: Number of vehicle colors (/showthread.php?tid=403686)



Number of vehicle colors - ikkentim - 31.12.2012

Hi, does someone have an array, containing whether a vehicle has 0, 1 or 2 colors? So a camper(483) would have 0 colors, a turismo(451) has 1 colors and a bobcat(422) has 2 colors.

Does anyone have such array and wants to share it with me, or does someone know where i can find this info?

Thanks!


---

Waiting took me too long + couldn't find on‌e == made one myself:
Код:
new vehCols[212]={
1,1,1,1,2,1,0,1,1,2,1,1,1,1,1,1,2,0,1,1,1,1,2,2,2,0,1,2,2,2,2,2,0,0,0,0,
1,2,1,1,1,2,2,1,2,1,2,0,1,2,1,1,2,2,2,1,2,1,1,1,2,1,2,2,0,0,2,2,1,0,0,2,
1,2,1,1,2,1,1,2,2,1,1,2,2,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,1,0,2,2,2,2,1,1,
1,1,1,2,2,2,1,2,1,2,1,0,0,1,2,0,2,2,1,1,0,1,1,1,0,1,1,1,2,0,0,2,1,2,2,1,
1,1,1,1,0,2,1,1,2,2,2,1,0,0,1,1,1,1,1,2,0,1,1,1,0,0,0,2,1,2,1,1,1,2,1,1,
1,1,2,2,0,1,1,1,1,1,0,1,2,0,0,2,2,2,2,2,2,0,1,2,2,1,0,0,1,2,0,2 
};



Re: Number of vehicle colors - Vince - 31.12.2012

That information is readily available in the carcols.dat file, though. And the Camper, Cement Truck and Squalo actually have 4 colors. Still you can only adjust the first two in SA-MP.


Re: Number of vehicle colors - ikkentim - 31.12.2012

Quote:
Originally Posted by Vince
Посмотреть сообщение
That information is readily available in the carcols.dat file, though. And the Camper, Cement Truck and Squalo actually have 4 colors. Still you can only adjust the first two in SA-MP.
afaik, that file just indicates all possible combinations, not the number of colors a vehicle has(samp modifiable)

Well, with that array i got it all works out, thanks anyway