I need help with my code

Posts 1–9 of 9 · Page 1 of 1
I need help with my code
I would like to know if this code is sure if it is not correct and is replaced for me?

Code:
#include<windows.h>


#define WeaponMgr       999999
#define NoReload        999999
#define WeaponDamage    999999
#define singlefire      999999
#define range           999999
#define dmg             999999





DWORD WINAPI Hacks(LPVOID)
{
    
    bool Change = false,
         reload = false,
		 single = false,
		 gunrange = false,
		 ammodmg = false;
		 
		 
		 
		 

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

	
	if(GetAsyncKeyState(VK_F2)  || GetAsyncKeyState(VK_F2) &1) { Change = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F3) || GetAsyncKeyState(VK_F3) &1) { reload = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F4) || GetAsyncKeyState(VK_F4) &1) { single = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F5) || GetAsyncKeyState(VK_F5) &1) { gunrange = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F6) || GetAsyncKeyState(VK_F6) &1) { ammodmg = true; Beep(512, 100); }
	
	




	
	if(Change)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = 999999;
		}
	    }
	}
	
	
	if(ammodmg)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + dmg) = 999999;
		}
	    }
	}

	
	if(gunrange)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + range) = 999999;
		}
	    }
	}

		
	if(single)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + singlefire) = 999999;
		}
	    }
	}	
	
	if(reload)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 999999;
		}
	    }
	}

	Sleep(100);
    }
}

bool Ready2Hook()
{
    if(GetModuleHandleA("CShell.dll")   != NULL
    && GetModuleHandleA("ClientFx.fxd") != NULL)
        return 1;
    return 0;
}

DWORD WINAPI Wait(LPVOID)
{
    while(!Ready2Hook()) Sleep(200);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
    return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
    DisableThreadLibraryCalls(hDll);
    
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
	
        MessageBoxA(0, "59943211 by mpgh","Hack Injected", 0);
	

	CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
    }
    return 1;
}
lol.... the value for single fire should be 1 and stop leecing
your pointer and offset is wrong!!!.......
LOL all the addys are 999999
omg where are the addys 2 words EPIC FAIL
Lolz
Value of single fire is 1 Lolz
and stop leecheing
yup, value of single fire is 1
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us