[HELP] Chat Anim
#1

I've made this function under OnPlayerText:

Код:
 	if(GetPlayerState(playerid) == 1)
    {
        SetTimerEx("StopTalk", strlen(text)*80, false, "i", playerid);
     	ApplyAnimation(playerid,"PED","factalk",4.1,0, 0, 0, 0, 0);
    }
But it doesn't shows any animation when I type something.. The timer is forwarded to clearanimations. Does anyone has a idea why this ain't working?
Reply
#2

Try using the forcesync parameter provided with ApplyAnimation.
Reply
#3

did you preloaded anim lib?
Reply
#4

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
Try using the forcesync parameter provided with ApplyAnimation.
I did this but it didn't worked.

And what do you mean with preloading the libery?
Reply
#5

That anim is WRONG, what anim do you want for that?
Reply
#6

The one that makes a player chatting with a timer.. So if you say "Hi" the animation will appear for like 1 seconds and when you're saying "Hello" for about 2 seconds.

Pleas reply!
Reply
#7

You mean the one that is like whispering?
Reply
#8

No the one that if you say HEY your arms start moving for about 3 seconds and when you say HELLO it will move for 5 seconds.. Y'feel me?
Reply
#9

You should use this one:

pawn Код:
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 1, 1, 1, 1, 1, 1);
Just leave it like that, don't change the values, it will automaticly stop depending on the string lenght.
Reply
#10

The animation doesn't stops.. I don't know why?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)