SA-MP Forums Archive
[Include] OnPlayerTurnUpsideDown - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] OnPlayerTurnUpsideDown (/showthread.php?tid=647895)



OnPlayerTurnUpsideDown - Jelly23 - 12.01.2018

• OnPlayerTurnUpsideDown
I removed my previous thread as I was doing some changes.

This include will call OnPlayerTurnUpsideDown if the player turns upside down through modifications.
• Callback
PHP код:
public OnPlayerTurnUpsideDown(playeridFloat:angle
*Upside Down (https://imgur.com/a/FuXkD) and Random Quats from sandbox will call this callback.
*Parkour mods or any other modification that turns the player upside down will call this callback.
• Demonstration
• What it covers
I was asked before by some people about false-positive cases, these are the only causes that could change the player quaternions without modifications:
  • Entering Vehicles (Covered by the include, no risks).
  • Sky Diving (Impossible for the angle to reach below -85.0 or above 85.0, the callback won't be called, no risks).
  • "Loading..." bug (Angle would be NaN and the callback could be called, but it is covered by the include, so no risks).
• Dependencies.
- Pawn.RakNet: https://sampforum.blast.hk/showthread.php?tid=640306
• Download
- Github



Re: OnPlayerTurnUpsideDown - Ritzy2K - 12.01.2018

If a player is car surfing and that car spins in the mid air?


Re: OnPlayerTurnUpsideDown - Jelly23 - 12.01.2018

Quote:
Originally Posted by Ritzy
Посмотреть сообщение
If a player is car surfing and that car spins in the mid air?
Surfing a vehicle can't affect the player rotation quats, even if it spins.


Re: OnPlayerTurnUpsideDown - RogueDrifter - 12.01.2018

Good job updating to this now thanks!
can't rep you again gave u too much rep x.x


Re: OnPlayerTurnUpsideDown - RIDE2DAY - 17.01.2018

Some people gonna hate this include, but I love it! Good job.


Re: OnPlayerTurnUpsideDown - Jelly23 - 22.01.2018

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Good job updating to this now thanks!
can't rep you again gave u too much rep x.x
Quote:
Originally Posted by KayJ
Посмотреть сообщение
Nice work.
Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
Some people gonna hate this include, but I love it! Good job.
Thanks.


Re: OnPlayerTurnUpsideDown - 2Col - 02.02.2018

Nice. Could hackers turn upside down other players?


Re: OnPlayerTurnUpsideDown - Jelly23 - 02.02.2018

Quote:
Originally Posted by 2Col
Посмотреть сообщение
Nice. Could hackers turn upside down other players?
If the player is inside a vehicle, then yes, but not on foot.


Re: OnPlayerTurnUpsideDown - RogueDrifter - 02.02.2018

I can confirm this is great and has busted many cheaters on my server and with the current version i'm not having any bugs/false positives.


Re: OnPlayerTurnUpsideDown - Uberanwar - 02.02.2018

Impressive job, Jelly23. I expect more releases from you! Tested and it worked precisely!


Re: OnPlayerTurnUpsideDown - Jelly23 - 03.02.2018

Quote:
Originally Posted by RogueDrifter
View Post
I can confirm this is great and has busted many cheaters on my server and with the current version i'm not having any bugs/false positives.
Quote:
Originally Posted by Uberanwar
View Post
Impressive job, Jelly23. I expect more releases from you! Tested and it worked precisely!
Thanks.


Re: OnPlayerTurnUpsideDown - GrandTA - 03.03.2018

I Tested it with parkour mod but doesn't detect it. :\


Re: OnPlayerTurnUpsideDown - Jelly23 - 03.03.2018

Quote:
Originally Posted by GrandTA
View Post
I Tested it with parkour mod but doesn't detect it. :\
If it doesn't turn you upside down, to the point of affecting player rotation quats and not (only) anims, then it won't work. It was made mainly for sandbox's upside down/random quats feature anyway.


Re: OnPlayerTurnUpsideDown - RogueDrifter - 03.03.2018

Quote:
Originally Posted by Jelly23
View Post
If it doesn't turn you upside down, to the point of affecting player rotation quats and not (only) anims, then it won't work. It was made mainly for sandbox's upside down/random quats feature anyway.
some airbreak cheats turn you upside down too, the include works i can verify that, the player just needs to get into the right turn angle.