ApplyAnimation
#2

You'll need:

ApplyAnimation, //Function
OnPlayerTakeDamage, // Callback
SetTimerEx //Function
ClearAnimations //Function

Simply, inside of the callback, check if their weapon (the issuerid) is a police baton, and apply the animation (don't forget to apply it twice, unless you preload animations!) to the playerid (the player taking the damage) and set a timer to clear their animations using ClearAnimations(playerid);

Simple.
Reply


Messages In This Thread
ApplyAnimation - by Gooday - 19.01.2012, 19:04
Re: ApplyAnimation - by 2KY - 19.01.2012, 19:10
Re: ApplyAnimation - by Gooday - 19.01.2012, 19:16
Re: ApplyAnimation - by 2KY - 19.01.2012, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)