Spec
Fully Optimized
- Messages
- 1,641
Ok, well here is a nametag cheat im designing for BF2 (Single Player of course). And i need some help..because my code aint working...
--MEMORY.CPP--
--MEMORY.H--
I'm trying to combine D3D with memory so i'm already injecting the dll into BF2. Im using the D3D Starter kit to inject the DLL. Anyone?
--MEMORY.CPP--
#include "memory.h"
HANDLE Base;
DWORD bytes;
BYTE org_NameTags[6] = {0};
DWORD g_dwNameTags3;
void CMemory::ReadStaticPointers()
{
Base= GetModuleHandle("RendDX9.dll");
g_dwNameTags3 = (DWORD)Base+0x12D882;
ReadProcessMemory(GetCurrentProcess(), (void*) g_dwNameTags3, &org_NameTags, 6, &bytes);
}
void CMemory::SetNameTags()
{
static BYTE g_dwNameTags3_jmp[6]={0x0F,0x84,0xF3,0x00,0x00,0x00};
WriteProcessMemory(GetCurrentProcess(), (void*) g_dwNameTags3, &g_dwNameTags3_jmp, 6, &bytes);
}
--MEMORY.H--
#ifndef _MEMORY_H
#define _MEMORY_H
#include "main.h"
#include <windows.h>
class CMemory
{
public:
CMemory(){
};
~CMemory();
void ReadStaticPointers (void);
void SetNameTags (void);
};
#endif
I'm trying to combine D3D with memory so i'm already injecting the dll into BF2. Im using the D3D Starter kit to inject the DLL. Anyone?