Advertisement
Krusher666

IsPlayerFalling.inc

Feb 9th, 2017
927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. // IsPlayerFalling.inc
  2. // IMI BAG PULA-N MA-TA KOREM & TUD0R
  3. #if defined _IsPlayerFalling_included
  4.     #endinput
  5. #endif
  6. #define _IsPlayerFalling_included
  7.  
  8.  
  9. stock IsPlayerFalling(playerid)
  10. {
  11.     if(GetPlayerAnimationIndex(playerid) == 1195 || GetPlayerAnimationIndex(playerid) == 1197 || GetPlayerAnimationIndex(playerid) == 1133 || GetPlayerAnimationIndex(playerid) == 1130)
  12.     {
  13.         new Float:Z;
  14.         GetPlayerVelocity(playerid, Z, Z, Z);
  15.         if(Z != 0)
  16.         {
  17.             return 1;
  18.         }
  19.  
  20.     }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement