Advertisement
Meta__

IsPlayerRunningAnimation

Mar 3rd, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.48 KB | None | 0 0
  1. #define IsPlayerRunningAnyAnimation(%0) (GetPlayerAnimationIndex(%0)==1129||GetPlayerAnimationIndex(%0)==1133||GetPlayerAnimationIndex(%0)==1156||GetPlayerAnimationIndex(%0)==1189)
  2.  
  3. stock IsPlayerRunningAnimation(playerid, checkLib[], checkName[])
  4. {
  5.     new animlib[32];
  6.     new animname[32];
  7.     GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
  8.     return !strcmp(animlib, checkLib, true) && !strcmp(animname, checkName, true);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement