open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

Different packet order for Jetpack handling

Open douq opened this issue 10 months ago • 2 comments
trafficstars

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:

  1. Implement a solution like that https://sampforum.blast.hk/showthread.php?tid=507891
  2. Give a player a jetpack
  3. 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

douq avatar Jan 19 '25 11:01 douq

You can already block jetpack dropping for other players using pawnraknet. Here's an example: pastebin.com/c0uJ0w50

BeckzyBoi avatar Jan 19 '25 18:01 BeckzyBoi

This is the expected behavior, it’s not a bug.

r4sheed avatar Feb 07 '25 07:02 r4sheed