SA-MP Forums Archive
anim chat when you talk ic-ly - 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: anim chat when you talk ic-ly (/showthread.php?tid=592389)



anim chat when you talk ic-ly - Rafaeloo - 24.10.2015

i need a fs when you talk icly not /b automatically make the /chat anim..
and when you speak not frozeen the player

who can give me a code for fs ?


sorry for english


Re: anim chat when you talk ic-ly - Dusan01 - 24.10.2015

OnPlayerText add:
Код:
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
SetTimerEx("StopTalk", strlen(text)*80, false, "i", playerid);
and add new callback:
Код:
forward StopTalk(playerid);
public StopTalk(playerid) {
    ClearAnimations(playerid);
    return 1;
}