Changing the exhausting time
#1

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
Reply
#2

you're only able to let the player exhaust earlier (i did it with keydetection the SetPlayerVelocity/Animation)
Reply
#3

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? ?
Reply
#4

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
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)