Raised This Month: $ Target: $400
 0% 

PreThink and client buttons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MrDev
Member
Join Date: Sep 2005
Old 10-29-2005 , 14:03   PreThink and client buttons
Reply With Quote #1

I'm trying to reverse the users direction. move left = move right etc.

Currently I have:

Code:
public client_PreThink ( id ) {         if(get_user_button(id) & IN_MOVELEFT)     {         client_cmd(id, "+moveright")     }                     else if (get_user_oldbutton(id) & IN_MOVELEFT)     {         client_cmd(id, "-moveright")     }         return FMRES_HANDLED }

but it won't work Maybe it's because i need to stop moving left first? I've tryed different approches but none worked. Prethink is called correctly.
MrDev is offline
 



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 23:50.


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