Raised This Month: $ Target: $400
 0% 

Help with buttons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kiryxa
Junior Member
Join Date: Jan 2014
Old 01-16-2014 , 14:52   Help with buttons
Reply With Quote #1

Hello, i want that when i use the button "w"(I go forward),i move back
I try it:
Code:
public client_PreThink(id)
{
new iButton = get_user_button(id)
if(iButton & IN_FORWARD)
{
client_print(id, print_center, "test")
entity_set_int(id,EV_INT_button,iButton & ~IN_FORWARD & IN_BACK)
}
}
But it does not work.I go forward.Why?Others ideas?

Last edited by kiryxa; 01-16-2014 at 14:53.
kiryxa 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 10:06.


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