SA-MP Forums Archive
Animation seat problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Animation seat problem (/showthread.php?tid=503032)



Animation seat problem - Carxi - 27.03.2014

I've the create the command for seat applyanimation:
PHP код:
ApplyAnimation(playerid,"PED","SEAT_idle"4.010000); 
But when the player speak the SEAT Animation disappears, i can't leave the PED IDLE_CHAT Animation.
How can i resolve it?
PHP код:
if(!in_anim[playerid])
                {
                    if(!
death_mode[playerid] && !sleeping[playerid])
                    {
                        
ApplyAnimation(playerid,"PED""IDLE_CHAT",4.1,0,0,0,1,1);
                        if(
GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCKSetTimerEx("StopTalk"anim_timefalse"i"playerid);
                    }
                    else
                    {
                        
SendErrorMsg(playerid,"Non puoi parlare in sistema morte.");
                    } 



Re: Animation seat problem - iFiras - 27.03.2014

Try using ClearAnimation or SetPlayerSpecialAction to NONE before doing any animation.