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

SPRX BO2 1.18 button monitoring pls help!

$
0
0
Hi guys, can someone fix my code because my button monitoring code won't work :/

Code:

namespace Buttons
{
        int

                DPADUp = 0x34,
                DPADDown = 0x38,
                DPADLeft = 0x3C,
                DPADRight = 0x40;
};

bool ButtonPressed(int Client, int Button)
{
    if (*(int*)ReadInt(0xF0A7CC + (Client * 0x5808), 1) == Button)
        return true;
    else return false;
}

void thread_entry(uint64_t arg)
{         
        for(;;)
        {
                if (ButtonPressed(0, Buttons::DPADUp) && InGame() == true)
                {
                        G_Client(0, 0x18);
                        G_Client(0, 0x43C);
                }
        }
}


Viewing all articles
Browse latest Browse all 27691

Trending Articles



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