SA-MP Forums Archive
Animation & Button - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Animation & Button (/showthread.php?tid=361141)



Animation & Button - vardanega - 20.07.2012

Hello,

I wish that when a player presses the button, run an animation that plays ("MUSCULAR", "MuscleSprint") and the second where he releases the button that stops the animation.

Thank you for your help!


Re: Animation & Button - newbienoob - 20.07.2012

https://sampwiki.blast.hk/wiki/OnPlayerK...Simplification


Re: Animation & Button - [KHK]Khalid - 20.07.2012

You gotta use OnPlayerKeyStateChange for the buttons part and ApplyAnimation to apply an animation.


Re : Animation & Button - vardanega - 20.07.2012

Thx !