SA-MP Forums Archive
[Include] vFunc - Synced random vehicle colors (-1), GetVehicleColor and more vehicle-related functions (UPDATED FOR 0.3.7) - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] vFunc - Synced random vehicle colors (-1), GetVehicleColor and more vehicle-related functions (UPDATED FOR 0.3.7) (/showthread.php?tid=339088)

Pages: 1 2


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - Konstantinos - 16.03.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
That isn't my include.
It is, he re-named it with a different name.


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - MP2 - 16.03.2013

As someone said; line 1 is a comment. How do you know what he's supposedly done?


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - SMW - 15.06.2013

player vehicle color is not synced with other players, any help ?


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - MP2 - 16.06.2013

I can't really help you if you give me no information. Did you include it and compile? Do other functions work? Did you include it before any other includes that may set a vehicles' colours?


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - HeLiOn_PrImE - 28.12.2013

you can create a vehicle with double health?


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - Emmet_ - 29.12.2013

Nice script here, I'll get around to using it if I decide to work on my project again.

Quote:
Originally Posted by MP2
Посмотреть сообщение
IMPORTANT NOTE: GetVehicleColor will NOT work in filterscripts. This is because vehicles (generally) are created in your gamemode, and the filterscript is loaded AFTER. The filterscripts can't read the data from the gamemode, and I see no reason why you'd want it to anyway.
You can try using properties.

pawn Код:
setproperty(vehicleid, "Color1", color1);
setproperty(vehicleid, "Color2", color2);
And so on.

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
you can create a vehicle with double health?
Nice bump. Use SetVehicleHealth, if that's what you meant .


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - Alphlax - 29.12.2013

Nice code


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - HeLiOn_PrImE - 29.12.2013

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
Nice bump. Use SetVehicleHealth, if that's what you meant .
I know the max health is 1000, but I saw him mentioning the code:

Код:
   SetVehicleHealth(vehicleid, 2000); // Set to double health
This is confusing...


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - Emmet_ - 29.12.2013

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
I know the max health is 1000, but I saw him mentioning the code:

Код:
   SetVehicleHealth(vehicleid, 2000); // Set to double health
This is confusing...
That's just an example. Double health is simply the original, default vehicle health in SA-MP, multiplied by 2 (hence the word double)...


Re: vfunc - GetVehicleColor, GetVehicleInterior and synced random colors (-1, -1) - Zamora - 29.12.2013

Amazing, I'll use it.


Re: vFunc - Synced random vehicle colors (-1), GetVehicleColor and more vehicle-related functions (UPDATED FOR 0.3.7) - FERCOPRO - 05.07.2016

Quote:
Originally Posted by DusanInfinity
Посмотреть сообщение
Can anyone help me? I need this include..
This is happening to me too.


Re: vFunc - Synced random vehicle colors (-1), GetVehicleColor and more vehicle-related functions (UPDATED FOR 0.3.7) - MerryDeer - 22.07.2016

I have other includes that do some stuff with createvehicle it's hooked it not mess up everything?