Can Anyone teach me whats wrong in this? its not working in game
#include <windows.h>
#include <stdio.h>
#define ADR_Playerpointer 0x009DA730
#define ADR_Serverpointer 0x009D96D8
#define ADR_Glasswall 0x009D8884
#define OFS_NoRecoil1 0x000C444
#define OFS_NoRecoil2 0x000C448
#define OFS_NoRecoil3 0x000C450
#define OFS_X 0x0010300
#define OFS_Z 0x0010308
#define OFS_Y 0x0010310
#define OFS_Nfd 0x00102E8
struct CPlayer
{
char BMPHx1[50244];//0x00
float NoRecoil1;//0xC444
float NoRecoil2;//0xC448
float NoRecoil3;//0xC44C
char BMPHx2[155];//0x1024D
float NoFallDamage;//0x102E8
char BMPHx3[25];//0x102EC
float PosX;//0x10300
char BMPHx4[4];//0x10304
float PosY;//0x10310
char BMPHx5[4];//0x10314
float PosZ;//0x10308
};
struct CBase
{
CPlayer* pLocal;
char* Mervin1[1113074];
CPlayer** pGlobal;
};
CBase * pBase;
float PosY;
float PosX;
float PosZ;
DWORD nPlayerOPK = 0;
DWORD *ingame= (DWORD*)ADR_Playerpointer;
DWORD *outgame= (DWORD*)ADR_Serverpointer;
void glasswall()
{
if(GetKeyState(VK_MBUTTON))
*(int*)ADR_Glasswall = 1;
else
{
*(int*)ADR_Glasswall = 0;
}
}
void All()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
*(float*)(dwPlayerPtr+OFS_NoRecoil1) = 0;
*(float*)(dwPlayerPtr+OFS_NoRecoil2) = 0;
*(float*)(dwPlayerPtr+OFS_NoRecoil3) = 0;
*(float*)(dwPlayerPtr+OFS_Nfd) = -2000;
}
void OPK()
{
DWORD Playerx = *(DWORD*)ADR_Playerpointer;
if(Playerx != 0)
{
if (pBase->pGlobal && nPlayerOPK == 1)
{
if (nPlayerOPK) /*Player OPK*/
{
for(int i = 0; i < 32; i++)
{
CPlayer* pPlayer = pBase->pGlobal[i];
pPlayer->PosX= 0;
pPlayer->PosY= 0;
pPlayer->PosZ= 0;
}
}
}
}
}
void opkon()
{
if (GetAsyncKeyState(VK_NUMPAD4))
{
nPlayerOPK = nPlayerOPK = 1;
MessageBeep(MB_ICONINFORMATION);
}
}
void opkoff()
{
if (GetAsyncKeyState(VK_NUMPAD5))
{
nPlayerOPK = nPlayerOPK = 0;
MessageBeep(MB_ICONINFORMATION);
}
}
void ProJectBMPH()
{
for(;; )
{
if(*ingame)
{
glasswall();
All();
OPK();
opkon();
opkoff();
}
if(*outgame)
{
glasswall();
}
Sleep(400);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL,"BMPH,Mervin Coderz","Created",MB_OK);
MessageBoxA(NULL,"MPGH Coderz,Mark Tusoy","Credits",MB_OK);
MessageBoxA(NULL,"[InoZent],Mark David Mancio Coderz","Credits",MB_OK);
MessageBoxA(NULL,"Kenshi Coder,Tyler Andrew Coderz","Credits",MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ProJectBMPH, 0, 0, 0);
}
return TRUE;
}
please tell me whats my mistake here. @
Alex_Agnew
---------- Post added at 05:06 AM ---------- Previous post was at 05:05 AM ----------
No bad comments Please i just want to get Help

thank you im just a newbie coder