Vehicle attached to a gun that shoots? - 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 attached to a gun that shoots? (
/showthread.php?tid=441294)
Vehicle attached to a gun that shoots? -
d711728 - 02.06.2013
Hi
How to attach a gun that shoots a vehicle and wounding a player?
I did not find any function.
Re: Vehicle attached to a gun that shoots? -
SlonCHL - 02.06.2013
I don't know where do you want to attach the gun to or how to make a gun shoot a vehicle but you can get the ID of the player that is in the vehicle with
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID and then minus his health using SetPlayerHealth.