Quote:
Originally Posted by Liverwiz
at the end of the function put this line.
Code:
set_pev(id, pev_buttons, button)
This will make sure you only press jump once by essentially deactivating the jump button from currently pressed buttons.
Its kinda sloppy, but it should work for you.
|
so like this?
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")
__________________