adding memory hacks to mo3ad001 menu base

Posts 1–6 of 6 · Page 1 of 1
adding memory hacks to mo3ad001 menu base
how do i add meonery hacks to this base i found out how to do it on other base but i can find out how to do it on this base plz help me!!
Quote Originally Posted by ISmokeWeedAmICoolNow View Post


get out
LOL
/tooshort
just tell me how to add them
1. Make a function like this:

Code:
void cHack::PatchASM(bool MenuVal, int iAddress, char chCodeOn[], char chCodeOff[], int iLength, bool &zsFlag)
{
	if(MenuVal)
	{
		if(zsFlag)
		{
            		memcpy((void*)iAddress,(void*)(char*)chCodeOn, iLength);
			zsFlag = false;
		}
	}
    	else if(zsFlag == false)
	{
        	memcpy((void*)iAddress,(void*)(char*)chCodeOff, iLength);
		zsFlag = true;
	}
}
2. Execute it

Code:
Hack.PatchASM(Menu.CheckBox[1][1].State, iRapidFire, chRapidFireOn, chRapidFireOff, iRapidFireLength, Hack.Flag.Flag[i++]);
if you need help with simple stuff like this you should go and learn the basics!
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us