Speedhack and No spread
hey guys.. been trying to make this work for a couple of days now.. searching from post to post. It would compile, but sadly... it doesnt work in-game. Could anyone tell me what's wrong?
Code:
#include <windows.h>
#include <stdio.h>
#define ADR_PlayerPointer 0x00A90408
#define ADR_ServerPointer 0x00A8F3B0
#define ADR_RemotePointer 0x00B0B728
#define ADR_WeaponGlobal1 0x00AAE498
#define ADR_WeaponGlobal2 0x00B024E0
#define ADR_FastAmmo 0x00A94A3C
#define ADR_FastHealth 0x00A94A44
#define ADR_Speed 0x00A90410
#define ADR_SuperNoSpread 0x008AE9B8
DWORD *inGame = (DWORD*) 0x00A90408;
void WriteFunction(void *adr, void *ptr, int size)
{
DWORD dwback;
VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &dwback);
memcpy(adr,ptr,size);
VirtualProtect(adr,size,dwback, &dwback);
}
template <typename T>void WriteFunction(void* adr,T Vaule,T *Input = NULL)
{
if(Input == 0)
WriteFunction((void*)adr,(void*)&Vaule,sizeof(T));
else
WriteFunction((void*)Input,(void*)adr,sizeof(T));
}
void Supernospread()
{
*(double*)ADR_SuperNoSpread = 0.1;
}
void SpeedNormal()
{
if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF)
{
*(double*)ADR_Speed = 100.0f;
}
}
void SpeedX2()
{
if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF)
{
*(double*)ADR_Speed = 200.0f;
}
}

