Number of vehicle colors
#1

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 
};
Reply
#2

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.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)