Raised This Month: $ Target: $400
 0% 

PreThink and client buttons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 10-29-2005 , 17:05  
Reply With Quote #4

Hes right.

First in your plugin you have to stop them moving by using the:
Code:
-movedirection
Then you have to tell them to move the direction you want them to move. So use this:
Code:
 public client_PreThink ( id ) {         if(get_user_button(id) & IN_MOVELEFT)     {         client_cmd(id,"-moveleft")         client_cmd(id, "+moveright")     }                     else if (get_user_oldbutton(id) & IN_MOVELEFT)     {         client_cmd(id, "-moveright")     }         return FMRES_HANDLED }
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
 



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