Changing the exhausting time - 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: Changing the exhausting time (
/showthread.php?tid=411135)
Changing the exhausting time -
DiGiTaL_AnGeL - 27.01.2013
Hi. It's been such a long time since I haven't asked for help, but here I am. I want to know how could I change the time you exhaust running(so sorry for my English) So, tell me. :P
AW: Changing the exhausting time -
Kwashiorkor - 27.01.2013
you're only able to let the player exhaust earlier (i did it with keydetection the SetPlayerVelocity/Animation)
Re: AW: Changing the exhausting time -
DiGiTaL_AnGeL - 28.01.2013
Quote:
Originally Posted by Kwashiorkor
you're only able to let the player exhaust earlier (i did it with keydetection the SetPlayerVelocity/Animation)
|
Are you sure?

?
AW: Changing the exhausting time -
Kwashiorkor - 28.01.2013
there is no native way to change the players stamina - checking if the player walks/sneaks/runs/jumps whatever and using SetPlayerVelocity/TogglePlayerControllable/ApplyAnimation(exhaust anim) is the only way i know of
Re: Changing the exhausting time -
Glad2BeHere - 28.01.2013
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
and
https://sampwiki.blast.hk/wiki/ApplyAnimation
This what u want is going to be determined by how long the player press the button OnPlayerKeyStateChange,
alot of timers u know" SetTimer"..... and alot of public function to mount it in properly to ensure that whenever the player press a certain key it times them then another action happens and then u also going to need alot of variables to toggle it on off..... I could probably draw u and example if i do i usual with pm u it