Ham_Player_Jump
Hello, I'm using the HAMSANDWICH include for checking the number of jumps a player do.
I use that registerham - PHP Code:
PHP Code:
Help please :wink: Btw, this is my variable - PHP Code:
|
Re: Ham_Player_Jump
Maybe because ur using mwheel up / down to jump instead of space.
|
Re: Ham_Player_Jump
Yeah i know but it doesn't metter i guess.. it should not count by +jump or -jump commands..
|
Re: Ham_Player_Jump
It only check the function when +jump function is called and while doing that with mwheel up its called for several times.
|
Re: Ham_Player_Jump
check if player is on ground before increacing that variable
|
Re: Ham_Player_Jump
If you hold +jump during 1 second, the function gonna be called like 100 times (consider that it is continuously called), this is not reliable to count jumps.
|
Re: Ham_Player_Jump
Hook player keys and detect when he press space key.
Then increase your variable by 1 every time he uses space key. |
Re: Ham_Player_Jump
Quote:
|
Re: Ham_Player_Jump
Quote:
PHP Code:
|
Re: Ham_Player_Jump
I check for jumping in my Shove Mod ;)
|
| All times are GMT -4. The time now is 09:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.