SA-MP Forums Archive
Freezing ApplyAnimation - 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: Freezing ApplyAnimation (/showthread.php?tid=609384)



Freezing ApplyAnimation - blanic - 11.06.2016

I use this code to get animation and when it finishes player's arms get stuck, they freeze, why? How to solve?
I want player walking while he's running animation

PHP код:
ApplyAnimation(playerid"PED""IDLE_CHAT"4.100011);
    
SetTimerEx("StopAnimation",2500false"i"playerid);
public 
StopAnimation(playerid)
{
     
ApplyAnimation(playerid"PED""IDLE_CHAT"4.100011);
    return 
1;




Re: Freezing ApplyAnimation - F1N4L - 11.06.2016

Код:
public StopAnimation(playerid) 
{ 
    ClearAnimations(playerid);
    return 1; 
}



Re: Freezing ApplyAnimation - blanic - 11.06.2016

It's not working yet


Re: Freezing ApplyAnimation - Alpay0098 - 11.06.2016

Are you sure there's not any looping timer that Clears players animations? (Some servers got something like that to prevent players' /sleep animation)

Find all ClearAnimations(playerid) or ClearAnimations(i) or x or y and ... to find out there's timer like that or not


Re: Freezing ApplyAnimation - blanic - 11.06.2016

Quote:
Originally Posted by Alpay0098
Посмотреть сообщение
Are you sure there's not any looping timer that Clears players animations? (Some servers got something like that to prevent players' /sleep animation)

Find all ClearAnimations(playerid) or ClearAnimations(i) or x or y and ... to find out there's timer like that or not
This is the only existing timer in my gamemode


Re: Freezing ApplyAnimation - Dayrion - 11.06.2016

Try this :
PHP код:
ApplyAnimation(playerid"PED""IDLE_CHAT"4.1000011); 



Re: Freezing ApplyAnimation - blanic - 11.06.2016

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Try this :
PHP код:
ApplyAnimation(playerid"PED""IDLE_CHAT"4.1000011); 
This doesn't do anything


Re: Freezing ApplyAnimation - Dayrion - 11.06.2016

Quote:
Originally Posted by blanic
Посмотреть сообщение
This doesn't do anything
This doesn't freeze me :
PHP код:
CMD:test4(playerid)
{
    
ApplyAnimation(playerid"PED""IDLE_CHAT"4.100011);
    return 
1;




Re: Freezing ApplyAnimation - blanic - 11.06.2016

I use it on OnPlayerText


Re: Freezing ApplyAnimation - blanic - 11.06.2016

My arms freeze after animation usage


Re: Freezing ApplyAnimation - Dayrion - 12.06.2016

Show us the full code, I don't understand why it's working for me and not for you.

NB : STOP SENDING ME PM FOR ANSWER OR I'LL STOP TRYING TO HELP YOU.


Re: Freezing ApplyAnimation - blanic - 12.06.2016

This is the full code, I don't know why it's not working; arms freeze after animation and I have to jump