public void OnButtonPressed(int iClient, int iButton) { PrintToChat(iClient, "You pressed %i", iButton); }
public void OnButtonReleased(int iClient, int iButton) { PrintToChat(iClient, "You released %i", iButton); }
#define ATTACK 1 #define JUMP 2 #define DUCK 4 #define FORWARD 8 #define BACK 16 #define USE 32 #define CANCEL 64 #define LEFT 128 #define RIGHT 256 #define MOVELEFT 512 #define MOVERIGHT 1024 #define ATTACK2 2048 #define RUN 4096 #define RELOAD 8192 #define ALT1 16384 #define ALT2 32768 #define SCORE 65536 #define SPEED 131072 #define WALK 262144 #define ZOOM 524288 #define WEAPON1 1048576 #define WEPAON2 2097152 #define BULLRUSH 4194304 #define GRENADE1 8388608 #define GRENADE2 16777216 #define ATTACK3 33554432
#include <buttondetector>