Stop an animation?
#1

Hello!
I have a stock which is making the player reloading. The player doing the animation, but he still with the animation.
I also try to set ClearAnimations(playerid) but like me though, this canceling player's animation. I, also, changed "timer" to try what change. Set to 1 second, do nothing. Set to 1 ms, cancel animation.
I don't want to set any timers.
Thanks for your help!
PHP код:
stock SetAnimationForWeapon(playeridweaponid)
{
    switch(
weaponid)
     {
           case 
22ApplyAnimation(playerid"COLT45""colt45_reload"4.101101);
        case 
23ApplyAnimation(playerid"SILENCED""Silence_reload"4.101101);
        case 
24ApplyAnimation(playerid"PYTHON""python_reload"4.101101);
        case 
2527ApplyAnimation(playerid"BUDDY""buddy_reload"4.101101);
        case 
26ApplyAnimation(playerid"COLT45""sawnoff_reload"4.101101);
        case 
29..313334ApplyAnimation(playerid"RIFLE""rifle_load"4.101111);
        case 
2832ApplyAnimation(playerid"TEC""tec_reload"4.101111);
        
//ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
    
}
    return 
1;

Reply


Messages In This Thread
Stop an animation? - by Dayrion - 27.05.2016, 12:15
Re: Stop an animation? - by Konstantinos - 27.05.2016, 12:26
Re: Stop an animation? - by Dayrion - 27.05.2016, 12:27
Re: Stop an animation? - by iggy1 - 27.05.2016, 12:55
Re: Stop an animation? - by Konstantinos - 27.05.2016, 13:25
Re: Stop an animation? - by karoliko - 27.05.2016, 14:35
Re: Stop an animation? - by Dayrion - 27.05.2016, 15:33
Re: Stop an animation? - by iggy1 - 27.05.2016, 18:17
Re: Stop an animation? - by Dayrion - 27.05.2016, 23:03
Re: Stop an animation? - by Dayrion - 28.05.2016, 18:10

Forum Jump:


Users browsing this thread: 2 Guest(s)