09.02.2017, 14:13
This is a very simple include made by me (Krusher) which can be used if a player is falling or not.
It useful to check if a player is falling before he is trying to use anims.
This script is not 100% accurate, but is good.
How to use:
Just download the include from first link, and include it in your gamemode. - #include <IsPlayerFalling>
For example:
Direct download: http://cheats.tw/krusher/IsPlayerFalling.zip
Pastebin: http://pastebin.com/wCBaT97n
It useful to check if a player is falling before he is trying to use anims.
This script is not 100% accurate, but is good.
How to use:
Just download the include from first link, and include it in your gamemode. - #include <IsPlayerFalling>
For example:
Код:
if(IsPlayerFalling(playerid)) return SCM(playerid, -1, "You are falling right now, you can't use this command."); // your code that will be executed if player is NOT falling
Pastebin: http://pastebin.com/wCBaT97n