SA-MP Forums Archive
[FilterScript] Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) - 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)
+--- Thread: [FilterScript] Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) (/showthread.php?tid=646000)



Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) - Graber - 08.12.2017

With this FS you can prevent KEY_FIRE and KEY_ACTION (Secondary Fire) for selected vehicles you add.
This will allow you to add Sea Sparrow, Hunter, etc. without its deadly features!

Has a callback that allows you to handle how the player can be warned, etc.

Needs Pawn.RakNet.

Download:
Pastebin

Video demonstration:
https://www.youtube.com/watch?v=HGLVPX9UwQU

Kudos to RIDE2DAY for fixing my shitty for loop.

This release is for mainly demonstration purposes. Although it can be used as a standalone FS, I encourage you to add it properly to your GM Script.

Thanks!


Re: Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) - Abagail - 08.12.2017

This will still show them firing it client side, right?


Re: Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) - Graber - 08.12.2017

Quote:
Originally Posted by Abagail
Посмотреть сообщение
This will still show them firing it client side, right?
Yeah, but has a callback when you fire, so that you can tell the player to stop, best way would be a dialog to interrupt them with a message in the middle of the screen


Re: Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) - Kasis - 08.12.2017

Quote:

Quote:
This will still show them firing it client side, right?
---
Yeah, but has a callback when you fire, so that you can tell the player to stop, best way would be a dialog to interrupt them with a message in the middle of the screen

Good job! First time seeing this.


Re: Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) - cuber - 08.12.2017

Good job!


Re: Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) - Graber - 08.12.2017

Updated to a more optimized loop. Nothing big but thanks!


Re: Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) - SquirrelLSRP - 12.12.2017

Nice stuff!


Re: Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc) - Xeon™ - 12.12.2017

well, nicely done.