Is Player Running ? - 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: Is Player Running ? (
/showthread.php?tid=323751)
Is Player Running ? -
Larry123 - 06.03.2012
Hello
How can i do a system which detect that player is running or not(walking)?
Re: Is Player Running ? -
Whitetiger - 06.03.2012
with GetPlayerAnimationIndex and possibly velocity
Re: Is Player Running ? -
Larry123 - 06.03.2012
So it work like this ?
pawn Код:
if(GetPlayerAnimationIndex(playerid) && !IsPlayerInAnyVehicle(playerid))
{
//player is running
}
else
{
//player is not running
}
Re: Is Player Running ? -
Larry123 - 06.03.2012
bump
Give me fast ideas and i give u rep+