SA-MP Forums Archive
OnPlayerText - Chat 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: OnPlayerText - Chat Animation (/showthread.php?tid=428993)



OnPlayerText - Chat Animation - Omirrow - 07.04.2013

How do I make the length of text animation?


Re: OnPlayerText - Chat Animation - HurtLocker - 07.04.2013

Be more specific.


Re: OnPlayerText - Chat Animation - Omirrow - 07.04.2013

Speech by the length of time the animation will be "Los Santos Role Play" from the server's.

Note: Using a dictionary.


Re: OnPlayerText - Chat Animation - Riddick94 - 07.04.2013

You want to create game-text/textdraw and then show each letter every second, or what? If so, use a SetTimer/Ex.


Re: OnPlayerText - Chat Animation - Omirrow - 07.04.2013

I just want to adjust the length of the animation researched article I found a few examples, but incorrect.


Re: OnPlayerText - Chat Animation - Riddick94 - 07.04.2013

Oh, player animation. Before last parameter in ApplyAnimation is responsible for animation length. Check it on wiki.sa-mp.


Re: OnPlayerText - Chat Animation - Omirrow - 07.04.2013

https://sampforum.blast.hk/showthread.php?tid=113259 - a complete solution, but do not mention here.


Re: OnPlayerText - Chat Animation - Riddick94 - 07.04.2013

Take it and go away, please...

pawn Код:
public OnPlayerText(playerid, text[])
{
    new AnimTime = strlen(text) * 50;
    ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 1, 1, 0, AnimTime, 1);
    return true;
}
Next time, be more specific please.


Re: OnPlayerText - Chat Animation - Omirrow - 07.04.2013

Very Nice, Thank you.