Animation when talk ?
#1

Hello guys, I just looking for some code will apply an animation when player chat, sorry about bad English
Reply
#2

https://sampwiki.blast.hk/wiki/ApplyAnimation
https://sampwiki.blast.hk/wiki/Animations
Reply
#3

Okay I have this code but player still can move their hands normal after apply animations.
Quote:

public OnPlayerText(playerid, text[])
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Length = strlen(text);
new time = Length*200;
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1, 1,1,time);
ClearAnimations(playerid);
return 1;
}

Reply
#4

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        new length = strlen(text), time = (length * 200);
        ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 1, 1, 1, time, 1);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)