[Include] vFunc - Synced random vehicle colors (-1), GetVehicleColor and more vehicle-related functions (UPDATED FOR 0.3.7)
#21

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

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

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

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?
Reply
#25

you can create a vehicle with double health?
Reply
#26

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

Nice code
Reply
#28

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

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)...
Reply
#30

Amazing, I'll use it.
Reply
#31

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)