SA-MP Forums Archive
Jetpack help - 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: Jetpack help (/showthread.php?tid=498611)



Jetpack help - Hybris - 04.03.2014

Hello so recently I've made a jetpack cmd for admins only and when I use the jetpack and I press enter the jetpack floats in the air like in single player mode and I believe anyone can use it but I want to stop that I want it so that after I press enter it disappears can anyone help please?


Re: Jetpack help - fiel - 04.03.2014

im not sure about jetpacks but does them have a vehicle id? if jes OnPlayerExitVehicle is your method.


Re: Jetpack help - Threshold - 04.03.2014

The jetpack cannot be seen by anyone else as far as I know. I also know that this isn't possible, because the jetpack is removed as a native feature of GTA. Therefore, that will be called before any possible callback including OnPlayerKeyStateChange. So either use a command or different button to remove the jetpack scriptwise, you cannot change this by using the 'F' or 'Return' button.