Whats going wrong?

Posts 1–3 of 3 · Page 1 of 1
Whats going wrong?
Addresses.h:

Code:
//=============== POINTER ===============//

#define ADR_PTR_PLAYERPOINTER		0x009F4EA0
#define ADR_PTR_SERVERPOINTER		0x00A5341C

//=============== OFFSET ===============//

#define ADR_OFS_PREMIUM1		0x0058C
#define ADR_OFS_NORECOIL1		0x000
#define ADR_OFS_NORECOIL2		0x004
#define ADR_OFS_NORECOIL3		0x008
#define ADR_OFS_SLOT1			0x00C70D0
#define ADR_OFS_SLOT2			0x00C70D1
#define ADR_OFS_SLOT3			0x00C70D2
#define ADR_OFS_SLOT4			0x00C70D3
#define ADR_OFS_SLOT5			0x00C70D4
#define ADR_OFS_SLOT6			0x00C70D5
#define ADR_OFS_SLOT7			0x00C70D6
#define ADR_OFS_SLOT8			0x00C70D7
#define ADR_OFS_DINAR			0x00D4
#define ADR_OFS_NFD    			0x000
Main.cpp:

Code:
#include <Windows.h>
#include <stdio.h>
#include "Addresses.h"


DWORD *inGame = (DWORD*)ADR_PTR_PLAYERPOINTER;
DWORD *outGame = (DWORD*)ADR_PTR_SERVERPOINTER;

void PlayerHacks (void)
{
	
	if (*inGame != 0)
	{
		if (GetAsyncKeyState(VK_SHIFT) &1)
		{
			*(float*)(inGame + ADR_OFS_NORECOIL1) = 0;
			*(float*)(inGame + ADR_OFS_NORECOIL2) = 0;
			*(float*)(inGame + ADR_OFS_NORECOIL3) = 0;
		}
		

	}
}

void HackThread(void)
{
	for(;;)
	{
		if (*inGame)
		{
			PlayerHacks();
		}
	}
     Sleep (100);
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
When i go ingame and press shift my no recoil doesn't work. Please help
your offset is incorrect. and make it auto on.
@Jhem yeah rigth ^^ @Winkx try to change your source code

void NoRecoil()
{
*(float*)(inGame + ADR_OFS_NORECOIL1) = 0;
*(float*)(inGame + ADR_OFS_NORECOIL2) = 0;
*(float*)(inGame + ADR_OFS_NORECOIL3) = 0;
}
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us