01.04.2018, 13:03
use ApplyAnimationEx, instead of ApplyAnimation.
PHP код:
stock ApplyAnimationEx(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
{
ApplyAnimation(playerid, animlib, animname, fDelta, loop, lockx, locky, freeze, time, forcesync);
SetTimerEx("ClearAnims",time,0,"i",playerid);
}
forward ClearAnims(playerid);
public ClearAnims(playerid)
{
ClearAnimations(playerid);
return 1;
}