open.mp
open.mp copied to clipboard
Different packet order for Jetpack handling
Describe the bug If a player has a jetpack and presses KEY_SECONDARY_ATTACK, they exit the jetpack, and it spawns next to them. To prevent this in SA:MP the following solution could be used: https://sampforum.blast.hk/showthread.php?tid=507891.
This no longer works because OnPlayerKeyStateChange() is called after the player exits the jetpack, making it impossible to prevent the exit. The same issue occurs when the check is performed in OnPlayerUpdate(), as the jetpack still spawns next to the player.
To Reproduce Steps to reproduce the behavior:
- Implement a solution like that https://sampforum.blast.hk/showthread.php?tid=507891
- Give a player a jetpack
- press KEY_SECONDARY_ATTACK
Expected behavior It would be good to have any chance to block the jetpack spawn next to the player.
Screenshots and/or logs
Release version 1.4.0.2783
You can already block jetpack dropping for other players using pawnraknet. Here's an example: pastebin.com/c0uJ0w50
This is the expected behavior, it’s not a bug.