[Question] Animation
#1

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!
Reply
#2

Search for "OnPlayerText" and delete the animation from there?
Reply
#3

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.
Reply
#4

What happens when you type when your already in an animation?
Reply
#5

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
Reply
#6

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.
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)