Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different packet order for Jetpack handling #1045

Open
douq opened this issue Jan 19, 2025 · 1 comment
Open

Different packet order for Jetpack handling #1045

douq opened this issue Jan 19, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@douq
Copy link

douq commented Jan 19, 2025

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 douq added the bug Something isn't working label Jan 19, 2025
@BeckzyBoi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants