SA-MP Forums Archive
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: chat animation (/showthread.php?tid=641814)



chat animation - BadJih - 20.09.2017

how to enable the auto chat animation when player type something icly (not /b) just simple txt


Re: chat animation - Dello - 20.09.2017

You should use a code in OnPlayerText(playerid)

https://sampwiki.blast.hk/wiki/ApplyAnimation

https://sampwiki.blast.hk/wiki/OnPlayerText

https://sampwiki.blast.hk/wiki/Function:SetTimer


Re: chat animation - Fungi - 21.09.2017

PHP код:
public OnPlayerText(playeridtext[])
{
     
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
     return 
0




Re: chat animation - BadJih - 21.09.2017

Quote:
Originally Posted by Fungi
Посмотреть сообщение
PHP код:
public OnPlayerText(playeridtext[])
{
     
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
     return 
0

thanks


Re: chat animation - BadJih - 22.09.2017

Quote:
Originally Posted by Fungi
Посмотреть сообщение
PHP код:
public OnPlayerText(playeridtext[])
{
     
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
     return 
0

they told me unreachable line in (return 0 because theres a lot of lines after onplayertext..