My C++ Script isnt working :\

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--
#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?
 
This program injects in to the BF2 Memory and changing enemy headlines..basicly instead of only when you can see them there name pops up and shows that they are an enemy, it does it all the time, so you can see them through walls and such.
 
ohhhh i c...well thats a little more complicated than i thought it was. Sorry can't help ya.
 
Back
Top Bottom