All Expert Coder!

Posts 1–15 of 20 · Page 1 of 2
All Expert Coder!
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. @AeroMan

---------- 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
i guess u posted that already? to other thread?
teka kaninang umaga pa ito ah hhehhhee
Remove the Sleep(400); and make it instead around 200, personally i prefer 180
Other then that it should work if you have the correct adresses.
Quote Originally Posted by AeroMan View Post
Remove the Sleep(400); and make it instead around 200, personally i prefer 180
Other then that it should work if you have the correct adresses.
u mean in his struct he just need to change the sleep 400 to 180? and his good to go?
Quote Originally Posted by F l a p J a c K View Post
u mean in his struct he just need to change the sleep 400 to 180? and his good to go?
Not in his struct, in his loop
Quote Originally Posted by AeroMan View Post
Not in his struct, in his loop
Do OPK hacks requires a Gameguard bypass? or you would only need it works like just some simple no menu hacks w/o a gameguard bypass?
Quote Originally Posted by WRPHNoob View Post
Do OPK hacks requires a Gameguard bypass? or you would only need it works like just some simple no menu hacks w/o a gameguard bypass?
It perfectly works without, since you use memory and not assembly.
So you aren't modifying bytes.
Quote Originally Posted by AeroMan View Post
Not in his struct, in his loop
what is loop? ^^
Quote Originally Posted by F l a p J a c K View Post
what is loop? ^^
A loop is a function where you 'call' aka looping the function.

You can see as it like this.
Code:
1. void loop()
2. {
3. //Code will be placed here
4. }
What the program will always do is loop the first line and then loop the second and so forth.
Now what is a loop?
A loop is a basicly a function that keeps getting called and calls all the other functions.
So for example if you add a call on line 3 ( hackthread_for_example(); ), this will always recall the hackthread_for_example thread.
I hope this helps, if not tell me
Quote Originally Posted by AeroMan View Post
A loop is a function where you 'call' aka looping the function.

You can see as it like this.
Code:
1. void loop()
2. {
3. //Code will be placed here
4. }
What the program will always do is loop the first line and then loop the second and so forth.
Now what is a loop?
A loop is a basicly a function that keeps getting called and calls all the other functions.
So for example if you add a call on line 3 ( hackthread_for_example(); ), this will always recall the hackthread_for_example thread.
I hope this helps, if not tell me

can you give me the other problems here? its still not working in warrock ph!
SINO PO BA PWEDE MAGING MENTOR D2?

---------- Post added at 08:59 AM ---------- Previous post was at 08:45 AM ----------

I NEED AN EXPERT OR ADVANCE MENTOR .....
JEEZ it won't work if you just C&P it.
Posts 1–15 of 20 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us