SA-MP Forums Archive
[Question] Animation - 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: [Question] Animation (/showthread.php?tid=303305)



[Question] Animation - tony_fitto - 12.12.2011

Hey guys,

I just have a quick question, are there any from of system that can detect if player is using an animation

like if(playerusinganimation(playerid)) or something like that.
Cause I have automatic chat animation when you write something and I want to disable that one if you are in a animation allready.

Thanks for any help!


Re: [Question] Animation - BleverCastard - 12.12.2011

Search for "OnPlayerText" and delete the animation from there?


Re: [Question] Animation - tony_fitto - 12.12.2011

Quote:
Originally Posted by [MP]Ditch
Посмотреть сообщение
Search for "OnPlayerText" and delete the animation from there?
You dont really understand, I want that animation to be there. but I dont want the animation to apply when a player allready are in an animation.


Re: [Question] Animation - BleverCastard - 12.12.2011

What happens when you type when your already in an animation?


Re: [Question] Animation - tony_fitto - 12.12.2011

Quote:
Originally Posted by [MP]Ditch
Посмотреть сообщение
What happens when you type when your already in an animation?
If you'r in like a sit animation, and type a text message the chat animation applys and the sit animation are removed.
I want the chat animation to only apply if the player are not in an other animation


Re: [Question] Animation - BleverCastard - 12.12.2011

Sorry I dunno how to do that, tbh most RP Servers dont use an animation so if you have a RP server, I suggest moving it but its down to you.


Re: [Question] Animation - Fj0rtizFredde - 12.12.2011

I guess you could use GetPlayerAnimationIndex to see if they are in an animation or not.