THREAD: [SPRX] All Clients DPAD Button Monitoring
  1. 07-31-2014, 11:56 AM
    seb5594's Avatar
    seb5594
    <span style="background:url(http://oi60.tinypic.com/amtgtv.jpg);font-weight:bold;color:black;">♥ Proud Former Admin ♥</span>
    seb5594's Avatar
    seb5594
    <span style="background:url(http://oi60.tinypic.com/amtgtv.jpg);font-weight:bold;color:black;">♥ Proud Former Admin ♥</span>
    2,723
    Posts
    64,864
    Reputation
    Jul 2008
    NextGenUpdate
    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.

  2. The Following 11 Users Say Thank You to seb5594 For This Useful Post:

    , , , , , , , , , ,