Why I get Dc If I put NoSpread ?
What is wrong to my code ?
Please help me
#include <windows.h>
#include <stdio.h>
#define ADR_PlayerPointer 0xA95790
#define ADR_ServerPointer 0xA94738
#define ADR_GlassWalls 0xA938C8
#define ADR_NoSpread 0x0010110
#define OFS_NoRecoil1 0x00C444
#define OFS_NoRecoil2 0x00C448
#define OFS_NoRecoil3 0x00C44C
#define ADR_NoBounds1 0xB1FE58
#define ADR_NoBounds2 0xB1FE5C
#define ADR_NoBounds3 0xB1FE60
DWORD *ingame= (DWORD*) ADR_PlayerPointer;
DWORD *outgame= (DWORD*)ADR_ServerPointer;
//Player Hacks
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
}
}
//-------------------------------------------------
void GlassWall()
{
if(GetKeyState(VK_MBUTTON))
*(int*)ADR_GlassWalls = 1;
else
{
*(int**)ADR_GlassWalls = 0;
}
}
void All()
{
*(double*)ADR_NoSpread = 0;
*(int*)ADR_NoBounds1 = 0;
*(int*)ADR_NoBounds2 = 0;
*(int*)ADR_NoBounds3 = 0;
}
void NoRecoil()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr + OFS_NoRecoil1) = 0;
*(float*)(dwPlayerPtr + OFS_NoRecoil2) = 0;
*(float*)(dwPlayerPtr + OFS_NoRecoil3) = 0;
}
}
//-------------------------------------------------
void HackThread()
{
for(;; )
{
if(*ingame)
{
All ();
PlayerHacks();
GlassWall();
NoRecoil();
}
if(*outgame)
{
}
Sleep(20); //prevent for overloading the cpu
}
}
//--------------------------End HackThread--------------------------//
//--------------------------End--------------------------//
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL,"Made By :Wesley Nisperos

","

",MB_OK);
MessageBoxA(NULL,"HAck Injected","Enjoy",MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
}
return TRUE;
}