Yo Guys,
I've been working on MW3 things via SPRX and made this little Button Monitoring.
It works perfect and i wanted to share it with you :)
This one will work Online and Offline!
The Script
Usage
Credits
seb5594 - Building Function
SC58 - client_s Pointer
I've been working on MW3 things via SPRX and made this little Button Monitoring.
It works perfect and i wanted to share it with you :)
This one will work Online and Offline!
The Script
Code:
enum Buttons
{
Up = 3135,
Down = 3137,
Left = 3139,
Right = 3231,
X = 3235,
Square = 3131,
Triangle = 3430,
L1 = 3133,
L2 = 3700,
L3 = 3900,
R1 = 3100,
R2 = 3500,
R3 = 3237
};
bool DetectBtn(int clientIndex, Buttons Btn)
{
return *(short*)(*(int*)0x017BB210 + (clientIndex * 0x68B80) + 0x21022) == Btn;
}
Code:
if(DetectBtn(0, Up))
{
//do whatever
}
seb5594 - Building Function
SC58 - client_s Pointer