Chat animation? + REP!
#1

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.
Reply
#2

Try this.
pawn Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)