12.01.2018, 21:56
• OnPlayerTurnUpsideDown
I removed my previous thread as I was doing some changes.• Callback
This include will call OnPlayerTurnUpsideDown if the player turns upside down through modifications.
• Demonstration*Upside Down (https://imgur.com/a/FuXkD) and Random Quats from sandbox will call this callback.PHP код:
public OnPlayerTurnUpsideDown(playerid, Float:angle)
*Parkour mods or any other modification that turns the player upside down will call this callback.
• 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:• Dependencies.
- 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).
- Pawn.RakNet: https://sampforum.blast.hk/showthread.php?tid=640306• Download
- Github