Код:
new Length = strlen(text);
new aTime = Length*300;
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,1,1,1,0,aTime);
Hello, so I'm going to use this animation to do talking anim whenever a player chats in-game. I have no issue making that work but the big problem comes when I need to restrict it so that it doesn't go off when players are doing an animation. I'm aware of how to stop it from working when crouched and such by using GetPlayerSpecialAction, however when it comes to other animations I have no idea. I tried using if(GetPlayerAnimationIndex(playerid) != 0) but that would imply that no animations at all is applied, and even when you stand still you are using an idle animation, so how do I get around this? Would it be possible to use GetPlayerAnimationIndex to get just one specific animation so that the talk anim will only work if the person is standing still with the idle animation?