Red faceNeed help with the code

Posts 1–5 of 5 · Page 1 of 1
Need help with the code
Can someone help me see if this is going to work because i don't know what is wrong with it

#include "stdafx.h"
#define WeaponMgr 0xA65EE8
#define NoReload 0x2698
#define NoRecoil1 0x1928
#define NoRecoil2 0x192C
#define NoRecoil3 0x1930
#define NoRecoil4 0x26A4
#define NoRecoil5 0x20FC
#define NoRecoil6 0x1F94
#define SeeGhost1 0x88
#define SeeGhost2 0x8C
#define SeeGhost3 0x90


DWORD WINAPI Hacks(LPVOID)
{
bool hak = true;
bool recoil = true;

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

if(hak)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload ) = 150;
}

}
}
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, "your test Here for the message","your title message", 0);

}
}

Any help would be appreciated
/Moved to the Hack Source Code Section
Your
Code:
WeaponMgr Pointer
is Wrong , Plus 2 you didn't use it , I May Help you take this :

Code:
#include<windows.h>
#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==126)||(i==135)||(i==209)||(i==210)||(i==240)||(i==263)||(i==272)||(i==338)||(i==382)||(i==383)||(i==384))
#define WeaponMgr       0xA68F90
#define WeaponDamage    0x7F8
#define BasicPlayerInfo 0xA02208



float FragDmg = 0.0f;

DWORD WINAPI Hacks(LPVOID)
{
    bool  fragdmg = true,
         recoil = true,

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


               //No Recoil
	if(recoil)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<560; i++)
		{
                    for(int y=0; i<560; y++)
                       {
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0x26A4 ) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0x1F94 ) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0x20FC ) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0x1930 ) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0x192C ) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0x1928 ) = 0.0f;
}
		   
		}
	    }
	}

//see ghost
if(BasicPlayerInfo) {
	*(float*)(Playerbasic + 0x88) = (float)300;
	*(float*)(Playerbasic + 0x8C) = (float)300;
	*(float*)(Playerbasic + 0x90) = (float)300;
	*(float*)(Playerbasic + 0x94) = (float)300;
}


	
	//no grenade damage
	if(fragdmg)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<560; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL && (grenades))
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = FragDmg;
		}
	    }
	}
	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 )
    {
	//optional
        MessageBoxA(0, "","", 0);
	

	CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
    }
    return 1;
}
Credit Goes To SwiftDude Base ^ Ghost Rider. No Recoil offset's , i am on phone no time to check if something false . sorry
Thanks for the help and yeah i am only new to this thanks for everything
This is solved
~Closed~
AND AGAIN FOR ALL:
HELP OR BE QUIET PLEASE.
WRITING "LEARN C++ or YOU CANT CODE" is spamming and the result could be a ban
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us