19.01.2012, 19:10
(
Последний раз редактировалось 2KY; 19.01.2012 в 19:42.
)
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.
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.