#include <windows.h>
#include <stdio.h>

#define ADR_PlayerPointer 0xA95790
#define ADR_ServerPointer 0xA94738
#define ADR_GlassWalls 0xA938C8
#define ADR_NOSPREAD 0x8BC608
#define OFS_NORECOIL1 0x00C444
#define OFS_NORECOIL2 0x00C448
#define OFS_NORECOIL3 0x00C44C

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 NoSpread()
{
if(GetAsyncKeyState(VK_NUMPAD7) &1)
{
*(float*)ADR_NOSPREAD = 0;
}
}
void NoSpreadOff()
{
if(GetAsyncKeyState(VK_NUMPAD8) &1)
{
*(float*)ADR_NOSPREAD = 1;
}
}
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)
{
PlayerHacks();
GlassWall();
NoSpread();
NoRecoil();
}
if(*outgame)
{
}
Sleep(200); //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;
}





Anyone Can Teach me What is Wrong here ? Because No Recoil and No Spread is Not Working any one can help me ?