Raised This Month: $ Target: $400
 0% 

get_user_button


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 05-18-2006 , 17:10   get_user_button
Reply With Quote #1

What are the stuff you can do with get_user_button like
Code:
~IN_JUMP
wonsae is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-18-2006 , 17:28  
Reply With Quote #2

Gets the button(s) a user is pressing.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 05-18-2006 , 17:34  
Reply With Quote #3

Um I mean that i want to know all the buttons like the example ~IN_JUMP
wonsae is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-18-2006 , 17:46  
Reply With Quote #4

Make a plugin and look at the output.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-18-2006 , 17:57  
Reply With Quote #5

Quote:
Originally Posted by SweatyBanana
Make a plugin and look at the output.
Stop being an idiot.

Code:
#define IN_ATTACK       (1<<0) #define IN_JUMP         (1<<1) #define IN_DUCK         (1<<2) #define IN_FORWARD      (1<<3) #define IN_BACK         (1<<4) #define IN_USE          (1<<5) #define IN_CANCEL       (1<<6) #define IN_LEFT         (1<<7) #define IN_RIGHT        (1<<8) #define IN_MOVELEFT     (1<<9) #define IN_MOVERIGHT        (1<<10) #define IN_ATTACK2      (1<<11) #define IN_RUN          (1<<12) #define IN_RELOAD       (1<<13) #define IN_ALT1         (1<<14) #define IN_SCORE        (1<<15)

I found these here:
http://www.amxmodx.org/funcwiki.php?...#const_buttons
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 05-21-2006 , 08:15  
Reply With Quote #6

I'm trying to do something like this but when I press my use button it doesn't work only sometimes
Code:
        if(get_user_button(id) && ~IN_USE){             blah(id)         }         else             {             blah2(id)         }
wonsae is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-21-2006 , 08:24  
Reply With Quote #7

Should be
Code:
        if(get_user_button(id) & IN_USE){             blah(id)         }         else             {             blah2(id)         }
VEN is offline
Reply



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:29.


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