Chat anim
#1

Hello.

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;
}
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:
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);
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.
Reply


Messages In This Thread
Chat anim - by Sergei - 14.07.2009, 07:21
Re: Chat anim - by MenaceX^ - 14.07.2009, 07:46
Re: Chat anim - by Sergei - 14.07.2009, 07:49
Re: Chat anim - by dice7 - 14.07.2009, 08:05
Re: Chat anim - by MenaceX^ - 14.07.2009, 08:12
Re: Chat anim - by pen_theGun - 14.07.2009, 08:15
Re: Chat anim - by Sergei - 14.07.2009, 09:18

Forum Jump:


Users browsing this thread: 3 Guest(s)