SA-MP Forums Archive
ClearAnimation Doesnt work. - 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: ClearAnimation Doesnt work. (/showthread.php?tid=356020)



ClearAnimation Doesnt work. - pasha97 - 02.07.2012

Hey, does anybody know why when i use ClearAnimation animation continunes working?

pawn Код:
if(listitem == 17)
    {
    SetPlayerSpecialAction(playerid,0);
    ClearAnimations(playerid);
    }
This code stops special actions, but it doesnt stop animations
I use this way to start animation:
pawn Код:
if(listitem == 11)
    {
    ApplyAnimation(playerid,"EXAMPLE","example",4.1,1,1,1,1,1,1);
   
    }



Re: ClearAnimation Doesnt work. - Homerman - 02.07.2012

Try using TogglePlayerControllable(playerid, 1); along with ClearAnimations.