21.12.2013, 15:54
I've tried alot of times to set a chat animation, when players talking in OnPlayerText, but I didn't success, can you build me this? +REP for the helpers.
public OnPlayerText(playerid,text[])
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
SetTimerEx("StopTalk",floatround(strlen(text)/9)*1000, 0, "i", playerid);
}
forward StopTalk(playerid);
public StopTalk(playerid)
{
ClearAnimations(playerid);
return 1;
}