Disabling Hydra/Hunter/Rhino missiles - 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: Disabling Hydra/Hunter/Rhino missiles (
/showthread.php?tid=396936)
Disabling Hydra/Hunter/Rhino missiles -
Intoxicated - 02.12.2012
How would I go about doing that?
I've tried a few filterscripts but most of them don't work. If the missile still fires that is fine, I just want the damage to be 0. I've been thinking about putting everyone on the same team and then handling damage scriptwise.
Re: Disabling Hydra/Hunter/Rhino missiles -
ReVo_ - 02.12.2012
Uhm.. maybe you can use OnPlayerUpdate with return 0 when a player try to fire with a rhino/hunter/hydra so other players dont see the missile. (Never tried but should work)
Or check what arguments are passed to OnPlayerTake(Give)Damage , and choose the better way.
Re: Disabling Hydra/Hunter/Rhino missiles -
Intoxicated - 02.12.2012
Yeah, Hydra missiles dont seem to be assigned to a weaponid.
Re: Disabling Hydra/Hunter/Rhino missiles -
Intoxicated - 03.12.2012
bump
Re: Disabling Hydra/Hunter/Rhino missiles -
Intoxicated - 24.12.2012
Bump.
Re: Disabling Hydra/Hunter/Rhino missiles -
Intoxicated - 27.12.2012
Bump.
Re: Disabling Hydra/Hunter/Rhino missiles -
DaRk_RaiN - 27.12.2012
Use OnPlayerKeyStateChange, if some one is on a hydra and he pressed KeyFire it ejects him..