Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock IsPlayerInWater(playerid) {}
- new anim = GetPlayerAnimationIndex(playerid);
- if (((anim >= 1538) && (anim <= 1542)) || (anim == 1544) || (anim == 1250) || (anim == 1062)) return true;
- return false;
- }
- stock GetPlayerDepth(playerid) {
- if (!IsPlayerInWater(playerid)) return 0.0;
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if (z > 0) return 0;
- return z;
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement