AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_user_button (https://forums.alliedmods.net/showthread.php?t=28607)

wonsae 05-18-2006 17:10

get_user_button
 
What are the stuff you can do with get_user_button like
Code:
~IN_JUMP

SweatyBanana 05-18-2006 17:28

Gets the button(s) a user is pressing.

wonsae 05-18-2006 17:34

Um I mean that i want to know all the buttons like the example ~IN_JUMP

SweatyBanana 05-18-2006 17:46

Make a plugin and look at the output.

Hawk552 05-18-2006 17:57

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

wonsae 05-21-2006 08:15

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)         }

VEN 05-21-2006 08:24

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


All times are GMT -4. The time now is 16:29.

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