26.07.2015, 11:13
Quote:
That's not a bug. You shouldn't never add vehicles with -1, because then client will set car color for every player, with vehicle defined colors from calcols.dat.
You need to define your random colors serverside to fix this or just use random(255) as color serverside. See here for example: https://sampforum.blast.hk/showthread.php?tid=235398 |
Where col1 and col2 are normal colors. (i think it was 32 and 1), then GetVehicleColor on the newly created car returnd -1, -1
It works fine with ChangeVehicleColor, but CreateVehicle is not logged for me?
The same for AddStatic vehicle, eaven thoug I have a color set at all of them.
AddStaticVehicle(576, 2356.4177, -1160.6126, 27.1266, 272.9424, 68, 96);
Also, Paintjob is returning number one lower than the actual paintjob, I had tu use:
paintjob = GetVehiclePaintjob(vehicleid)+1;