Hack wont work.

Posts 1–7 of 7 · Page 1 of 1
Hack wont work.
So i tried creating my very first hack but it wont even work,im rly shy to share the code but ive no choice, not sure wat ive done wrong,the msgbox wont even show up
anyway,
code:
Code:
#include <Windows.h>


BOOL WINAPI test(LPVOID){
	//[11D0F9BC]
	DWORD WeaponMgr = 0xD0F9BC;
	//[EAX+13AC]
	DWORD Reload =  0x13AC;
	//[EDX+13B0]
	DWORD ChangeDelay =  0x13B0;

	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);


	
	bool reload = false;
	if(!reload){
		if(pWeaponMgr){
			for(int i=0; i<=750; i++){
                if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
                  *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + Reload) = 100;
				
			}
		}
	}
	}
	
		bool changedelay = false;
		if(!changedelay){
			if(pWeaponMgr){
				for(int i=0; i<=750; i++){
                if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
                  *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + ChangeDelay) = 100;
			
		
		}

	}
		}
	}
		return 0;
}




//dllmain{
	DisableThreadLibraryCalls(hDll);
	MessageBoxA(0,"Testing"," ",0);
	Beep(523,500);
       CreateThread(0,0,(LPTHREAD_START_ROUTINE)test,0,0, 0);
	return true;
}
search for a source on mpgh
But the msgbox won't even show up..
wrong DLLmain code !
Quote Originally Posted by ComboDance View Post
wrong DLLmain code !
BOOL WINAPI DllMain(HModule hDll,DWORD fdwReason,LPVOID lpReversed)
don't just c+p this, even if the msgbox popup you still need to bypass the incoming errors due to no reload+change delay , PS : you will get banned if you got any popup error in-game
Code:
#include <Windows.h>

#define WeaponMgr = 0xD0F9BC;
#define Reload =  0x13AC;
#define ChangeDelay =  0x13B0;

bool changedelay = false;
bool reload = false;


void test(){

	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);

if(GetAsyncKeyState(VK_NUMPAD1)&1) 
{
	for(;;) {
	__asm pushad;

	if(!reload)
	{
		if(pWeaponMgr)
		{
			for(int i=0; i<=750; i++)
			{
                if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
                {
                  *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + Reload) = 100;
				}
			}
		}
	}
}
if(GetAsyncKeyState(VK_NUMPAD2)&1) 
{		
		if(!changedelay)
		{
			if(pWeaponMgr)
			{
				for(int i=0; i<=750; i++)
				{
                	if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
                	{
                  		*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + ChangeDelay) = 100;
			    	}

				}
			}
		}
}
Sleep(100);
			__asm popad;
}
	
}


BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
	switch (dwReason)
	{
	case DLL_PROCESS_ATTACH:
		DisableThreadLibraryCalls(hModule);
		MessageBoxA(0,"Testing"," ",0);
		CreateThread(0,0,(LPTHREAD_START_ROUTINE)test,0,0, 0);
		break;
	case DLL_PROCESS_DETACH:

		break;
	}

	return TRUE;
}
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us