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=10979)

v3x 03-06-2005 13:00

Get user button
 
lawl

knekter 03-06-2005 13:04

ouch
 
It doesn't work like that, its just returns stuff such as if the user is attacking or reloading, like this:

Code:
if(get_user_button(id) & IN_ATTACK) {     code }

here is the list:

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 hope this helps.

v3x 03-06-2005 13:05

Thank you, a lot.. That's what I was hoping for. =]


All times are GMT -4. The time now is 14:09.

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