Hello Community, why shouldnt this code works ?
If i start the Game, XTRAP reporting someting like Error or somethink.
Can someone help me ?
#include <Windows.h>
#define WeaponMgr 0xB65E94//
If i start the Game, XTRAP reporting someting like Error or somethink.
Can someone help me ?
#include <Windows.h>
#define WeaponMgr 0xB65E94//
- Code:
#define nochange 0xBDC//
#define NoReload 0xBD8//
#define damage 0x7C4//
#define NoRecoil1 0x4E8//
#define NoRecoil2 0x36A0//
#define NoRecoil3 0xE98//
#define NoRecoil4 0x1000//
#define NoRecoil5 0x1168//
#define knifeOHK1 0x3B9C//
#define knifeOHK2 0xBA4//
#define wallhack 0x6D0644
void UndetectedBase()
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
if (GetModuleHandleA("ClientFx.fxd")&&GetModuleHandleA("CShell.dll"))
{
memcpy((VOID*)wallhack, "\x00\x00\x00\x00\x00\x00", 6);
if(CShell + WeaponMgr)
{
for(int i=0; i<700; i++)
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 10;
}
if(CShell + WeaponMgr)
{
for(int i=0; i<700; i++)
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + nochange) = 10;
}
if (CShell + WeaponMgr)
for(int i=0; i<700; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
{
for (int j=0; j<10 ; j++)
{
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil1+j*4) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil2+j*4) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil3+j*4) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil4+j*4) = 0.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoRecoil5+j*4) = 0.0f;/////////////
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + knifeOHK1+j*4) = 200.0f + 200.0f;
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + knifeOHK2+j*4) = 200.0f + 200.0f;
}
}
}
}
Sleep(151);
}
void Base()
{
for(;;)UndetectedBase();
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Base, NULL, NULL, NULL);
}
return TRUE;
}