[Include] IsPlayerFalling - 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] IsPlayerFalling (
/showthread.php?tid=628351)
IsPlayerFalling -
wanted2013 - 09.02.2017
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:
Код:
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
Direct download: http://cheats.tw/krusher/IsPlayerFalling.zip
Pastebin: http://pastebin.com/wCBaT97n
Re: IsPlayerFalling - Jelly23 - 09.02.2017
This is not an include, but a snippet.
Post it here:
https://sampforum.blast.hk/showthread.php?tid=281