17.03.2016, 05:39
Hello guys, I just looking for some code will apply an animation when player chat, sorry about bad English
![Grin](images/smilies/biggrin.gif)
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; } |
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;
}