Post: [C++/SPRX] Button Monitoring
07-25-2014, 07:09 PM #1
Sticky
Mary J Wannnnna
(adsbygoogle = window.adsbygoogle || []).push({}); Here you go fgts

    
typedef enum Buttons
{
X = 1024,
O = 512,
Square = 2097152,
L3 = 139264,
R3 = 262144,
L2 = 32768,
R2 = 16384,
Start = 128,
L1 = 2056,
R1 = 65536,
Crouch = 512,
Prone = 256
}Buttons;

bool ButtonPressed(int clientIndex, int Button)
{
return *(int*)Playerstate(clientIndex) + 0x3609 == Button;
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to Sticky for this useful post:

-JM-, LaRip8, MrRebornModz--, SaberNGU, Swaqq, xHostModer
07-25-2014, 07:24 PM #2
Originally posted by Sticky View Post
Here you go fgts

    
typedef enum Buttons
{
X = 1024,
O = 512,
Square = 2097152,
L3 = 139264,
R3 = 262144,
L2 = 32768,
R2 = 16384,
Start = 128,
L1 = 2056,
R1 = 65536,
Crouch = 512,
Prone = 256
}Buttons;

bool ButtonPressed(int clientIndex, int Button)
{
return *(int*)Playerstate(clientIndex) + 0x3609 == Button;
}


Nice m8.
07-25-2014, 08:02 PM #3
GMTPS3
Do a barrel roll!
Playstate Size = 0x3980 Happy
07-25-2014, 08:17 PM #4
Sticky
Mary J Wannnnna
Originally posted by GMTPS3 View Post
Playstate Size = 0x3980 Happy


I know, the 0x3609 is the offset from playerstate for button monitoring xD
07-25-2014, 09:31 PM #5
GMTPS3
Do a barrel roll!
Originally posted by Sticky View Post
I know, the 0x3609 is the offset from playerstate for button monitoring xD

Ahh now i see hahah Happy
07-30-2014, 06:05 PM #6
Swaqq
Professional Thanker
What did you just call me?? :argh:

You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo