Dante94 Posted June 8, 2013 Share 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? Link to comment
manve1 Posted June 8, 2013 Share Posted June 8, 2013 Im not sure about a function, but you can use keys to get if a person is sprinting Link to comment
Dante94 Posted June 8, 2013 Author Share 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 Link to comment
dugasz1 Posted June 8, 2013 Share 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 Link to comment
arezu Posted June 8, 2013 Share Posted June 8, 2013 You can try with setPedStat and change stat for stamina (22). Link to comment
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