SA-MP Forums Archive
How to stop a character movement - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to stop a character movement (/showthread.php?tid=179241)



How to stop a character movement - JulietaZ - 26.09.2010

Well in 3a whenever i use /eat animatino the character completly freezes, but i updated the server to 3.b...so whenever u hit space the /eat animation stop, so i need to find out how to make the animation completly stop any kind of movement from player (in my server we /eat to regain health it spends money, and the character must be completly stopped to avoid abuse of this command)


Re: How to stop a character movement - Retardedwolf - 26.09.2010

Set the player animation to 0 or use ClearAnimations.


Re: How to stop a character movement - [4k]Wang - 26.09.2010

Answers been posted above.


Re: How to stop a character movement - JulietaZ - 26.09.2010

i think i was not soo clear, the problem is the animation must block the keyboard...so the player get paralized until the animation finishes, but in 3.b the /eat animation is canceled with spacebar so, ppl can eat and quickly touch space so they break free, i want the animation to dont stop if player hit the space bar


Re: How to stop a character movement - willsuckformoney - 26.09.2010

https://sampwiki.blast.hk/wiki/ApplyAnimation

Search the wiki

freeze = 1 should work.


Re: How to stop a character movement - JulietaZ - 26.09.2010

yes, the freeze works but as i said before..if i push space it unfreezes me :S this happens only since the 3b...in 3a it was working good


Re: How to stop a character movement - Retardedwolf - 26.09.2010

Quote:
Originally Posted by JulietaZ
Посмотреть сообщение
yes, the freeze works but as i said before..if i push space it unfreezes me :S this happens only since the 3b...in 3a it was working good
Check for code in OnPlayerKeyStateChange.


Re: How to stop a character movement - JulietaZ - 26.09.2010

Yeah that was the problem, it was strange that in the old version there was no way to stop that animation...Guys thanks very much =3