IsPlayerRunning - 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: IsPlayerRunning (
/showthread.php?tid=285087)
IsPlayerRunning -
lukas567 - 22.09.2011
Hey!
Is there any familiar function? Because I want to make system that if you are running after some time you will break your leg.
Thanks!
Re: IsPlayerRunning -
sleepysnowflake - 22.09.2011
HA!
I like the ideea.
Try checking if the player is playin' the runnin' animation, so that way ya gunna see if he is running.
Re: IsPlayerRunning - HuSs3n - 22.09.2011
can be done with ,"OnPlayerKeyStateChange"
check if the player is on foot , and pressing running key
Re: IsPlayerRunning -
sleepysnowflake - 22.09.2011
He mighte be in the water ?
Re: IsPlayerRunning -
fecheta_patrik - 22.09.2011
I belive that the anim detection is the best way to determine when a player is running.
Re: IsPlayerRunning - HuSs3n - 22.09.2011
https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex