Talking with hands... anim
#1

How can i make that when a player writes something anim of hands that talking will start.
without loop
Reply
#2

pawn Код:
ApplyAnnimation(playerid, "PED","factalk", 1,0, 1,1,0,1);
Reply
#3

ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)

Put the designated animation under the OnPlayerText, obviously make sure the loop parameter is 0.

Source: https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#4

Here ya go.
pawn Код:
public OnPlayerText(playerid, text[])
{
    new Len = strlen(text);
    new chat = (Len * 150);
    SetTimerEx("StopTalk", chat, false, "i", playerid);
    ApplyAnimation(playerid, "PED","IDLE_CHAT", 4.1, 0, 1, 1, 1, chat, 0);
    return 1;
}

{
    ApplyAnimation(playerid, "PED", "endchat_01",4.0,1,0,0,0,1);
    ClearAnimations(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)