Advertisement
BaSs_HaXoR

Mw3 .sprx button monitoring (C++)

Jul 25th, 2014
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. typedef enum Buttons
  2. {
  3.     X = 1024,
  4.     O = 512,
  5.     Square = 2097152,
  6.     L3 = 139264,
  7.     R3 = 262144,
  8.     L2 = 32768,
  9.     R2 = 16384,
  10.     Start = 128,
  11.     L1 = 2056,
  12.     R1 = 65536,
  13.     Crouch = 512,
  14.     Prone = 256
  15. }Buttons;
  16.  
  17. bool ButtonPressed(int clientIndex, int Button)
  18. {
  19.     return *(int*)Playerstate(clientIndex) + 0x3609 == Button;
  20. }
  21. //credits to sticky
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement