Quantcast
Channel: NextGenUpdate
Viewing all articles
Browse latest Browse all 27691

[SPRX] All Clients DPAD Button Monitoring

$
0
0
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
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;
}

Usage
Code:

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

Credits
seb5594 - Building Function
SC58 - client_s Pointer

Viewing all articles
Browse latest Browse all 27691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>