Post: [SPRX] All Clients DPAD Button Monitoring
07-31-2014, 11:56 AM #1
seb5594
Proud Former Admin
(adsbygoogle = window.adsbygoogle || []).push({});
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 Smile

This one will work Online and Offline!

The Script
    
enum Buttons
{
Up = 0x3135,
Down = 0x3137,
Left = 0x3139,
Right = 0x3231,
X = 0x3235,
Square = 0x3131,
Triangle = 0x3430,
L1 = 0x3133,
L2 = 0x3700,
L3 = 0x3900,
R1 = 0x3100,
R2 = 0x3500,
R3 = 0x3237
};
bool DetectBtn(int clientIndex, Buttons Btn)
{
return *(short*)(*(int*)0x017BB210 + (clientIndex * 0x68B80) + 0x21022) == Btn;
}


Usage
    
if(DetectBtn(0, Up))
{
//do whatever
}


Credits
seb5594 - Building Function
SC58 - client_s Pointer


Other interesting MW3 Release(s) from me:
You must login or register to view this content.

Last edited by seb5594 ; 07-31-2014 at 07:06 PM.

The following 11 users say thank you to seb5594 for this useful post:

A Friend, Absolute Zero, EdiTzZ, En3RGyMoDz, iMoDz-Baptiste, LaRip8, Notorious, SaberNGU, SnaY, Swaqq, Taylor

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo