JUMP problems
hello all,i need help.
i edited soccerjam plugin.e.g. when i have ball and i jump and i not press e,it will be a task. Problem is,that when i hold jump button with ball,shows about 10000 texts.. code : public Player_Jump(id) { new button = entity_get_int(id, EV_INT_button) new usekey = (button & IN_USE) if(!usekey && id == ballholder) client_print(0,print_chat,"TEST") |
Re: JUMP problems
how is Player_Jump called?
|
Re: JUMP problems
Quote:
|
Re: JUMP problems
RegisterHam( Ham_Player_Jump, "player", "Player_Jump" )
|
Re: JUMP problems
show the entire function, please.
|
Re: JUMP problems
This code only....
this is in soccerjam (ballholder).. the problem is in holding,it can be fixed with oldbuttons,but i dont know how to make with !usekey and ballholder public Player_Jump(id) { new button = entity_get_int(id, EV_INT_button) new usekey = (button & IN_USE) if(!usekey && id == ballholder) client_print(0,print_chat,"TEST") |
Re: JUMP problems
at the end of the function put this line.
Code:
button &= ~IN_JUMPIts kinda sloppy, but it should work for you. |
Re: JUMP problems
Quote:
public Player_Jump(id) { button &= ~IN_JUMP new button = entity_get_int(id, EV_INT_button) new usekey = (button & IN_USE) if(!usekey && id == ballholder) set_pev(id, pev_buttons, button) client_print(0,print_chat,"TEST") |
Re: JUMP problems
put them at the END. LAST 2 lines of the function.
|
Re: JUMP problems
not working.
|
| All times are GMT -4. The time now is 08:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.