14.07.2009, 07:21
Hello.
I made a simple thing which apply you a chat anim when you talk.
The problem is next. If I use SetTimer to stop anim, it only works for player ID 0, but anim doesn't stop for other players. If I use SetTimerEx it works for all the players, but you stay frozen until anim ends. I tried changing opt4 to 0 and 1 multiple times, also tried with loop and without and it's always the same; frozen until anim ends.
Basically I tried all these options:
With SetTimer it stops only for ID 0 and oyu can move while doing animation, but with SettimerEx it stops for all palyers, but oyu can't move while doing animation.
I need that it stops for all the players and you can mvoe while doing animation.
I made a simple thing which apply you a chat anim when you talk.
pawn Код:
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,time);
SetTimerEx("StopTalk", time, false, "i", playerid);
public StopTalk(playerid)
{
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
return 1;
}
Basically I tried all these options:
pawn Код:
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,time);
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,time);
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,time);
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,0);
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,0,0,0,0);
I need that it stops for all the players and you can mvoe while doing animation.