Raised This Month: $ Target: $400
 0% 

reverse keys


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-09-2007 , 03:00   reverse keys
Reply With Quote #1

ok i have this code in the forwarded prethink:
Code:
public fm_PreThink(id) {     if(gbReverseKeys[id])     {         static button, oldbuttons;         button = pev(id, pev_button);         oldbuttons = pev(id, pev_oldbuttons);         if(button & IN_MOVELEFT && !(oldbuttons & IN_MOVELEFT))         {             set_pev(id, pev_button, (button & ~IN_MOVELEFT) | IN_MOVERIGHT);         }         else if(button & IN_MOVERIGHT && !(oldbuttons & IN_MOVERIGHT))         {             set_pev(id, pev_button, (button & ~IN_MOVERIGHT) | IN_MOVELEFT);         }         if(button & IN_FORWARD && !(oldbuttons & IN_FORWARD))         {             set_pev(id, pev_button, (button & ~IN_FORWARD) | IN_BACK);         }         else if(button & IN_BACK && !(oldbuttons & IN_BACK))         {             set_pev(id, pev_button, (button & ~IN_BACK) | IN_FORWARD);         }     } }


except it just doesnt work.

any ideas?

EDIT: i also have same code, but with IN_JUMP, just to block it and not do anything else, but u can still jump.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
 


Thread Tools
Display Modes

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 16:14.


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