Raised This Month: $ Target: $400
 0% 

JUMP problems


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alfre
Member
Join Date: Feb 2010
Old 09-21-2012 , 11:57   Re: JUMP problems
Reply With Quote #8

Quote:
Originally Posted by Liverwiz View Post
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")
__________________

alfre is offline
Send a message via Skype™ to alfre
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode