❓ Help Expert Coder

Posts 1–15 of 16 · Page 1 of 2
❓ Help Expert Coder
#include <windows.h>
#include "CPatch.h"

#define ADR_Playerpointer 0x
#define ADR_Serverpointer 0x
#define ADR_Glasswall 0x
#define ADR_Stamina1 0x
#define OFS_NoRecoil1 0x
#define OFS_NoRecoil2 0x
#define OFS_NoRecoil3 0x
#define OFS_X 0x
#define OFS_Z 0x
#define OFS_Y 0x
#define ADR_SNS 0x
#define OFS_Nfd 0x
#define ADR_Speed 0x
#define OFS_WTW 0x
#define ADR_FastAmmo 0x
#define ADR_FastMedic 0x
#define ADR_FastFlag 0x
#define ADR_FastRepair 0x
#define ADR_NearFog 0x
#define ADR_FarFog 0x
#define ADR_AutoAmmoMedic 0x
#define ADR_AutoAmmo 0x
#define ADR_STW 0x
#define ADR_FullBright1 0x
#define ADR_FullBright2 0x
#define ADR_FullBright3 0x
#define ADR_NoWater1 0x
#define ADR_NoWater2 0x
#define WallClimb_Int 0x
#define OFS_NoDelay 0x
#define ADR_UnlimitedAmmo 0x
#define ADR_HideIGN 0x

//Hacks

float posiY;
float posiX;
float posiZ;
DWORD PlayerOPK = 0; <- You Can Give Me The Correct Place this
CPatch pammo (ADR_UnlimitedAmmo , 6);
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 Superjump()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
if(GetAsyncKeyState(VK_CONTROL)&1)
{
*(float*)(dwPlayerPtr +OFS_Z ) = 1300;
}
}
}
void dig()
{
if(GetAsyncKeyState(VK_MENU) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
*(float*)(dwPlayerPtr+OFS_Z) = -1000;
}
}
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;
*(double*)ADR_SNS = 0;
*(float*)ADR_Stamina1 = 10000;
*(float*)ADR_FastAmmo = 5000000;
*(float*)ADR_FastMedic = 5000000;
*(float*)ADR_FastFlag = 5000000;
*(float*)ADR_FastRepair = 5000000;
*(long*)(ADR_HideIGN) = 0;
;}
void SpeedOn()
{
if(GetAsyncKeyState(VK_UP) & 1)
{
MessageBeep(MB_ICONINFORMATION);
if (ADR_Speed > 100 )
{
*(float*)ADR_Speed = *(float*) (ADR_Speed) + 100.f;
}}}
void SpeedOff()
{
if(GetAsyncKeyState(VK_DOWN) & 1)
{
MessageBeep(MB_ICONINFORMATION);
if (ADR_Speed > 10 )
{
*(float*)ADR_Speed = *(float*) (ADR_Speed) - 97.0f;
}}}
void Teleport()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
if (GetAsyncKeyState(VK_F10))
{
MessageBeep(MB_ICONINFORMATION);
posiX = *(float*)(dwPlayerPtr + OFS_X);
posiY = *(float*)(dwPlayerPtr + OFS_Y);
posiZ = *(float*)(dwPlayerPtr + OFS_Z);
}
if (GetAsyncKeyState(VK_F11))
{
MessageBeep(MB_ICONINFORMATION);

*(float*)(dwPlayerPtr + OFS_X) = posiX;
*(float*)(dwPlayerPtr + OFS_Y) = posiY;
*(float*)(dwPlayerPtr + OFS_Z) = posiZ;
}
}
}
void fullbright()
{
*(int*)ADR_FullBright1 = 1092779973;
*(int*)ADR_FullBright2 = 1092779973;
*(int*)ADR_FullBright3 = 1092779973;
}
void nowater()
{
*(int*)ADR_NoWater1 = 99999;
*(int*)ADR_NoWater2 = 99999;
}
void WallClimb()
{
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
*(float*)(WallClimb_Int) = 999;
}
if(GetAsyncKeyState(VK_NUMPAD2)&1)
{
*(float*)(WallClimb_Int) = 5.0e1;
}
}
void NOFOG()
{
*(float*)ADR_FarFog= 1166127104;//far fog address
*(float*)ADR_NearFog= 1166127104; //nearfog address
}
void STWOn()
{
if(GetAsyncKeyState(VK_INSERT) &1)
{
MessageBeep(MB_ICONINFORMATION);
*(double*)ADR_STW = 0;
}
}
void STWOff()
{
if(GetAsyncKeyState(VK_HOME) &1)
{
MessageBeep(MB_ICONINFORMATION);

*(double*)ADR_STW = 0.5;
}
}
void nodelay()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
if(GetAsyncKeyState(VK_LBUTTON))
{
*(DWORD*)(dwPlayerPtr+OFS_NoDelay) = -0;
}
}
}
void ammoon()
{
if(GetAsyncKeyState(VK_F5) &1)
{
MessageBeep(MB_ICONINFORMATION);

pammo.PatchOnce ((void *)"\x00\x00\x00\x00",4);
}
}
void ammooff()
{
if(GetAsyncKeyState(VK_F6) &1)
{
MessageBeep(MB_ICONINFORMATION);

pammo.RestorePatch();
}
}
void SaveAmmo()
{
if (GetAsyncKeyState(VK_F8)) //record ammo
{
MessageBeep(MB_ICONINFORMATION);
*(int*)ADR_UnlimitedAmmo;
}
}
void WTW() <- Private

struct CPlayer
{
char xUnknown1[155];//0x10239
float NoFallDamage;//0x102D4
char xUnknown2[20];//0x102D8
float posX;//0x102EC
char xUnknown3[12];//0x102F0
float posY;//0x102F4
char xUnknown4[12];//0x102F8
float posZ;//0x102FC
char xUnknown5[224];//0x10400
DWORD NoDelay;//0x10400
char xUnknown6[225];//0x10300
DWORD PlayerOPK;//0x102FD
};
struct CBase
{
CPlayer* pLocal;
char xJumpToAdress1[1171732];
CPlayer** pGlobal;
};
CBase* p_PlayerA = (CBase*)ADR_Playerpointer;

void OPK()
{
DWORD Player = *(DWORD*)ADR_Playerpointer;
if(GetAsyncKeyState(VK_END)&1)
if(Player != 0)
{
if (p_PlayerA->pLocal)
{
if (PlayerOPK == 1) /*Player OPK*/
{
for(int i = 0; i < 32; i++)
{
CPlayer* pLocal = p_PlayerA->pGlobal[i];
p_PlayerA->pLocal->posX= 0;
p_PlayerA->pLocal->posY= 0;
p_PlayerA->pLocal->posZ= 0;
}
}
}
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
glasswall();
All();
Superjump();
dig();
SpeedOn();
SpeedOff();
Teleport();
WTW();
nowater();
fullbright();
WallClimb();
NOFOG();
STWOn();
STWOff();
nodelay();
ammoon();
ammooff();
SaveAmmo();
OPK();
}
if(*outgame)
{
glasswall();
}
Sleep(0);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL,"BMPH,Mervin Coderz","Created",MB_OK);
MessageBoxA(NULL,"Trial Ghame Coderz","For The addies Of Hide IGn",MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
}
return TRUE;
}



Why on The OPK Cannot Work



Help Expert

Thanks For Helping Coders


OPK Expert Coders List:
@AeroMan (AeroMan)
@Public3nemy (Yuri Vargas)
@[W]eb[C]ombat (Jesus Ceballos)
@d3ath (MJCreado)
@EarlDakz (Earl Dakay)
@donatello07 (Warrock07)
@joker..,, (3rdVision)
@MPGH Coderz (Mark Tusoy)
is that because your struct of cplayer and cbase are wrong, it means your base is wrong, I only use OFS_X,Y,Z and playerpointer, remotepointer and globalplayers for making OPK hack, and I can't see the hook of your OPK, that's why it will not work... and also your addresses are wrong....
Quote Originally Posted by emiedumalasa View Post
is that because your struct of cplayer and cbase are wrong, it means your base is wrong, I only use OFS_X,Y,Z and playerpointer, remotepointer and globalplayers for making OPK hack, and I can't see the hook of your OPK, that's why it will not work... and also your addresses are wrong....
and dont have OPK addy
...si mark tusoy pala yan si coderz wew
Quote Originally Posted by KenshinCoder View Post
and dont have OPK addy
no need the OPK addy because it's a struct... all you need are the addresses I mentioned above....
Quote Originally Posted by emiedumalasa View Post
no need the OPK addy because it's a struct... all you need are the addresses I mentioned above....
why not just use ASM lol




btw, you won't succeed by just CP. Study, learn.
@trialsg YES Idol ngayun mo lang nalaman??? @alvzcute12 Learn C++

#include <windows.h>
#include "CPatch.h" >>> dont forget here

#define ADR_Playerpointer 0x
#define ADR_Serverpointer 0x
#define ADR_Glasswall 0x
#define ADR_Stamina1 0x
#define OFS_NoRecoil1 0x
#define OFS_NoRecoil2 0x
#define OFS_NoRecoil3 0x
#define OFS_X 0x
#define OFS_Z 0x
#define OFS_Y 0x
#define ADR_SNS 0x
#define OFS_Nfd 0x
#define ADR_Speed 0x
#define OFS_WTW 0x
#define ADR_FastAmmo 0x
#define ADR_FastMedic 0x
#define ADR_FastFlag 0x
#define ADR_FastRepair 0x
#define ADR_NearFog 0x
#define ADR_FarFog 0x
#define ADR_AutoAmmoMedic 0x
#define ADR_AutoAmmo 0x
#define ADR_STW 0x
#define ADR_FullBright1 0x
#define ADR_FullBright2 0x
#define ADR_FullBright3 0x
#define ADR_NoWater1 0x
#define ADR_NoWater2 0x
#define WallClimb_Int 0x
#define OFS_NoDelay 0x
#define ADR_UnlimitedAmmo 0x
#define ADR_HideIGN 0x

struct CPlayer
{
char xUnknown1[155];//0x10239
float NoFallDamage;//0x102D4
char xUnknown2[20];//0x102D8
float posX;//0x102EC
char xUnknown3[12];//0x102F0
float posY;//0x102F4
char xUnknown4[12];//0x102F8
float posZ;//0x102FC
};
struct CBase
{
CPlayer* pLocal;
char xJumpToAdress1[1171732]; >>>> CHANGE HERE
CPlayer** pGlobal;
};
CBase* p_PlayerA = (CBase*)ADR_Playerpointer;


float posiY;
float posiX;
float posiZ;
CPatch pammo (ADR_UnlimitedAmmo , 6);

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 Superjump()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
if(GetAsyncKeyState(VK_CONTROL)&1)
{
*(float*)(dwPlayerPtr +OFS_Z ) = 1300;
}
}
}

void dig()
{
if(GetAsyncKeyState(VK_MENU) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
*(float*)(dwPlayerPtr+OFS_Z) = -1000;
}
}

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;
*(double*)ADR_SNS = 0;
*(float*)ADR_Stamina1 = 10000;
*(float*)ADR_FastAmmo = 5000000;
*(float*)ADR_FastMedic = 5000000;
*(float*)ADR_FastFlag = 5000000;
*(float*)ADR_FastRepair = 5000000;
*(long*)(ADR_HideIGN) = 0;
;}

void SpeedOn()
{
if(GetAsyncKeyState(VK_UP) & 1)
{
MessageBeep(MB_ICONINFORMATION);
if (ADR_Speed > 100 )
{
*(float*)ADR_Speed = *(float*) (ADR_Speed) + 100.f;
}}}

void SpeedOff()
{
if(GetAsyncKeyState(VK_DOWN) & 1)
{
MessageBeep(MB_ICONINFORMATION);
if (ADR_Speed > 10 )
{
*(float*)ADR_Speed = *(float*) (ADR_Speed) - 97.0f;
}}}

void Teleport()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
if (GetAsyncKeyState(VK_F10))
{
MessageBeep(MB_ICONINFORMATION);
posiX = *(float*)(dwPlayerPtr + OFS_X);
posiY = *(float*)(dwPlayerPtr + OFS_Y);
posiZ = *(float*)(dwPlayerPtr + OFS_Z);
}
if (GetAsyncKeyState(VK_F11))
{
MessageBeep(MB_ICONINFORMATION);

*(float*)(dwPlayerPtr + OFS_X) = posiX;
*(float*)(dwPlayerPtr + OFS_Y) = posiY;
*(float*)(dwPlayerPtr + OFS_Z) = posiZ;
}
}
}

void fullbright()
{
*(int*)ADR_FullBright1 = 1092779973;
*(int*)ADR_FullBright2 = 1092779973;
*(int*)ADR_FullBright3 = 1092779973;
}

void nowater()
{
*(int*)ADR_NoWater1 = 99999;
*(int*)ADR_NoWater2 = 99999;
}

void WallClimb()
{
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
*(float*)(WallClimb_Int) = 999;
}
if(GetAsyncKeyState(VK_NUMPAD2)&1)
{
*(float*)(WallClimb_Int) = 5.0e1;
}
}

void NOFOG()
{
*(float*)ADR_FarFog= 1166127104;//far fog address
*(float*)ADR_NearFog= 1166127104; //nearfog address
}
void STWOn()
{
if(GetAsyncKeyState(VK_INSERT) &1)
{
MessageBeep(MB_ICONINFORMATION);
*(double*)ADR_STW = 0;
}
}

void STWOff()
{
if(GetAsyncKeyState(VK_HOME) &1)
{
MessageBeep(MB_ICONINFORMATION);

*(double*)ADR_STW = 0.5;
}
}

void nodelay()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_Playerpointer;
if(dwPlayerPtr != 0)
{
if(GetAsyncKeyState(VK_LBUTTON))
{
*(DWORD*)(dwPlayerPtr+OFS_NoDelay) = -0; >>>> -1
}
}
}

void ammoon()
{
if(GetAsyncKeyState(VK_F5) &1)
{
MessageBeep(MB_ICONINFORMATION);

pammo.PatchOnce ((void *)"\x00\x00\x00\x00",4);
}
}
void ammooff()
{
if(GetAsyncKeyState(VK_F6) &1)
{
MessageBeep(MB_ICONINFORMATION);

pammo.RestorePatch();
}
}
}

void OPK()
{
DWORD Player = *(DWORD*)ADR_Playerpointer;
if(GetAsyncKeyState(VK_END)&1)
if(Player != 0)
{
if (p_PlayerA->pLocal)
{
if (PlayerOPK == 1) /*Player OPK*/
{
for(int i = 0; i < 32; i++)
{
CPlayer* pLocal = p_PlayerA->pGlobal[i];
p_PlayerA->pLocal->posX= 0;
p_PlayerA->pLocal->posY= 0;
p_PlayerA->pLocal->posZ= 0;
}
}
}
}
}

void HackThread()
{
for(;; )
{
if(*ingame)
{
glasswall();
All();
Superjump();
dig();
SpeedOn();
SpeedOff();
Teleport();
WTW();
nowater();
fullbright();
WallClimb();
NOFOG();
STWOn();
STWOff();
nodelay();
ammoon();
ammooff();
OPK();
}
if(*outgame)
{
}
Sleep(10);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL,"Suck my Dick n\r\n\r Special Thank'sn\r\n\r\nOwner","Succed",MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
}
return TRUE;
}
You should do OPK like this:

Code:
void OPK()
{
CPlayer* pLocal = p_PlayerA->pGlobal[i];

if(GetAsyncKeyState(VK_END)&1)
{
if (p_PlayerA->pLocal && PlayerOPK == 1)
{
for(int i = 0; i < 32; i++)
{
p_PlayerA->pLocal->posX= 0; //<- i belive those should be diffrent, because this is your position if im correct
p_PlayerA->pLocal->posY= 0;
p_PlayerA->pLocal->posZ= 0;
}
}
}
}
Quote Originally Posted by AeroMan View Post
You should do OPK like this
Obviously he gets the code, what he doesn't get are the structs he clearly copied outdated stuff
Thank For Helping @AeroMan (AeroMan)

---------- Post added at 09:53 PM ---------- Previous post was at 09:37 PM ----------

Help What Im Change this


Error

error C2065: i : undeclared identifier
@alvzcute12 in your OPK Source Code .... error C2065: i : undeclared identifier >>> click 2 times and fixed it ^^
Wah, bat ako kasali? di naman ako EXPERT ah
Quote Originally Posted by [W]eb[C]ombat View Post
Wah, bat ako kasali? di naman ako EXPERT ah
WAHAHHA XD !
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us