Advertisement
Codeblocks

Untitled

Oct 10th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. stock IsPlayerInWater(playerid) {}
  2. new anim = GetPlayerAnimationIndex(playerid);
  3. if (((anim >= 1538) && (anim <= 1542)) || (anim == 1544) || (anim == 1250) || (anim == 1062)) return true;
  4. return false;
  5. }
  6.  
  7. stock GetPlayerDepth(playerid) {
  8. if (!IsPlayerInWater(playerid)) return 0.0;
  9. new Float:x, Float:y, Float:z;
  10. GetPlayerPos(playerid, x, y, z);
  11. if (z > 0) return 0;
  12. return z;
  13. return
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement