Dante94 Posted June 8, 2013 Posted June 8, 2013 Hey guys, I would like to limit the sprint to a stated amount of time. Is there any function to know if a player is sprinting?
manve1 Posted June 8, 2013 Posted June 8, 2013 Im not sure about a function, but you can use keys to get if a person is sprinting
Dante94 Posted June 8, 2013 Author Posted June 8, 2013 Can you explain a bit better? Becouse something like: if you press the sprint key then it starts a timer that after a few seconds stop your sprint; it's not a good way to do it
dugasz1 Posted June 8, 2013 Posted June 8, 2013 I think whit this event it is solvable. https://wiki.multitheftauto.com/wiki/OnClientKey -- Check when player push space or releasing it https://wiki.multitheftauto.com/wiki/ToggleControl -- Whit it you can disable the sprint
arezu Posted June 8, 2013 Posted June 8, 2013 You can try with setPedStat and change stat for stamina (22).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now