Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public OnPlayerUpdate(playerid)
  2. {
  3. if (IsPlayerClimbing(playerid)) {
  4. SendClientMessage(playerid, -1, "Climbing");
  5. ClearAnimations(playerid);
  6. }
  7.  
  8. return 1;
  9. }
  10.  
  11. stock IsPlayerClimbing(playerid)
  12. {
  13. new index = GetPlayerAnimationIndex(playerid);
  14. return (index == 1061 || index == 1062 || index == 1066);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement