Guest User

Untitled

a guest
Apr 21st, 2015
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.30 KB | None | 0 0
  1. stock IsPlayerInWater(playerid)
  2. {
  3.     new lib[16], anim[32];
  4.     GetAnimationName(GetPlayerAnimationIndex(playerid), lib, sizeof(lib), anim, sizeof(anim));
  5.     if(!strcmp(lib, "SWIM", true) && !isnull(lib)) return 1;
  6.     if(!strcmp(lib, "PED", true) && !strcmp(anim, "SWIM_TREAD", true)) return 1;
  7.     return 0;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment