SA-MP Forums Archive
Vehicle windows. - 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: Vehicle windows. (/showthread.php?tid=532897)



Vehicle windows. - Banditukas - 21.08.2014

Hi,

I want to ask.

How to make that vehicle windows if you shoot to them no effect not will be like non-shoot windows is. And with wheels same.


Re: Vehicle windows. - Ihateyou - 21.08.2014

for tires, use

https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate


for windows do u mean when u shoot player he doesnt get killed inside car, bullet proof windows, use

https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot

check if hitid is in a car then return 0 to prevent damage