Hmm... try this.
Code:
public client_PreThink(id) {
if(!is_user_alive(id))
return;
new button = get_user_button(id);
new oldbutton = get_user_oldbutton(id);
new flags = get_entity_flags(id);
if( (button & IN_JUMP) && !(oldbutton & IN_JUMP) && (flags & FL_ONGROUND) && !(flags & FL_INWATER) ) {
client_jump(id);
}
}
It's a little sketchy.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS