06.04.2012, 07:16
Is it possible to clear chat after the chat animation (without freeze) OnPlayerText?
i try with Timer but after the animation playing the arms are stuck and cannot move. the arm can move after i jump.
code
i try with Timer but after the animation playing the arms are stuck and cannot move. the arm can move after i jump.
code
pawn Код:
new TalkTimer[MAX_PLAYERS];
new length = strlen(text);
new ctime = length*50;
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 0, 0, 1, ctime);
TalkTimer[playerid] = SetTimerEx("ClearTalkAnim", ctime, true, "d", playerid);
forward ClearTalkAnim(playerid);
public ClearTalkAnim(playerid)
{
ClearAnimations(playerid);
KillTimer(TalkTimer[playerid]);
return 1;
}