SA-MP Forums Archive
[HELP] Chat Anim - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Chat Anim (/showthread.php?tid=189490)



[HELP] Chat Anim - joeri55 - 12.11.2010

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?


Re: [HELP] Chat Anim - Retardedwolf - 12.11.2010

Try using the forcesync parameter provided with ApplyAnimation.


Re: [HELP] Chat Anim - gr56 - 12.11.2010

did you preloaded anim lib?


Re: [HELP] Chat Anim - joeri55 - 12.11.2010

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?


Re: [HELP] Chat Anim - The_Moddler - 12.11.2010

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


Re: [HELP] Chat Anim - joeri55 - 12.11.2010

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!


Re: [HELP] Chat Anim - The_Moddler - 12.11.2010

You mean the one that is like whispering?


Re: [HELP] Chat Anim - joeri55 - 12.11.2010

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?


Re: [HELP] Chat Anim - The_Moddler - 13.11.2010

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.


Re: [HELP] Chat Anim - joeri55 - 13.11.2010

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