Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Other Semi-Popular First Person Shooter Hacks › WarRock - International Hacks › WarRock Hack Source Code › Over 100 code snippets!

Over 100 code snippets!

Posts 1–15 of 42 · Page 1 of 3
AeroMan
AeroMan
Over 100 code snippets!
Hello,
Today i decided to do a little work for mpgh, because i saw lately so much ask for source codes, so i gonna copy & paste some of mine

Code:
if(OPK==0){
WriteAsm((void*)ADR_OPK1,OPKOFF1,/*Value*/6);
WriteAsm((void*)ADR_OPK2,OPKOFF2,/*Value*/6);
WriteAsm((void*)ADR_OPK3,OPKOFF3,/*Value*/6);}
Code:
if(OPK==1){
WriteAsm((void*)ADR_OPK1,OPKON1,/*Value*/5);
WriteAsm((void*)ADR_OPK2,OPKON2,/*Value*/5);
WriteAsm((void*)ADR_OPK3,OPKON3,/*Value*/5);}
Code:
if (CH_PanicKey == 1){if( GetAsyncKeyState(VK_DELETE)&1){
ExitGame(0);}}
Code:
if(CH_teleport == 1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
float PositionY = 0.0; float PositionX = 0.0;float PositionZ = 0.0;
	PositionX = *(float*)(dwPlayerPtr + OFS_X);
	PositionY = *(float*)(dwPlayerPtr + OFS_Y);
	PositionZ = *(float*)(dwPlayerPtr + OFS_Z);
  if(GetAsyncKeyState(VK_F10)&1){
		Telx = PositionX;
		Tely = PositionY;
		Telz = PositionZ;}
  if(GetAsyncKeyState(VK_F11)&1){
		*(float*)(dwPlayerPtr + OFS_X) = Telx;
		*(float*)(dwPlayerPtr + OFS_Y) = Tely;
		*(float*)(dwPlayerPtr + OFS_Z) = Telz;	 
}}}
Code:
if (CH_SP==1)
{
*(int*)(ADR_STAM5) = 1;
}
Code:
if (CH_SP==2)
{
*(int*)(ADR_STAM10) = 1;
}
Code:
if(CH_WeaponHack == 1)
{
if(GetAsyncKeyState(VK_F7) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+OFS_WEAPON1) = 114;}}}
Code:
if(CH_Fog == 0){
*(float*)OFS_NOFOG = 1166127104;//far fog address
*(float*)OFS_NEARFOG = 1166127104; //nerfog addres}
Code:
if(CH_RollSpeed == 1){
*(float*)(ADR_SPEEDROLL)= 250;}
Code:
if(CH_Dig == 1){
if(GetAsyncKeyState(VK_HOME) &1){
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
*(float*)(dwPlayerPtr+OFS_Z) = -2000;}}
Code:
if(CH_Gravity == 1){{
*(float*)(ADR_PLAYERPOINTER+OFS_GRAVITY) = 800.0f;}}
Code:
if(CH_Fastrepair == 1){
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0){
*(float*)ADR_FASTREPAIR = 5000000;}}
Code:
if(CH_Fasthealt == 1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0){
*(float*)ADR_FASTHEALTH = 5000000;}}
Code:
if(CH_Fastflag == 1){
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0){
*(float*)ADR_FASTFLAG = 5000000;}}
Code:
if(CH_Fastammo == 1){
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0){
*(float*)ADR_FASTAMMO = 5000000;}}
Code:
if(CH_fullbright == 1){
*(int*)(ADR_FULLBRIGHT1) = 1092779973;
*(int*)(ADR_FULLBRIGHT2) = 1092779973;
*(int*)(ADR_FULLBRIGHT3) = 1092779973;}
Code:
if(CH_Nospawn ==1){
*(float*) ADR_NOSPAWN1 = 0;
*(float*) ADR_NOSPAWN2 = 0;
*(float*) ADR_NOSPAWN3 = 0;}
Code:
if(CH_Speed == 1){
*(float*) ADR_SPEED  = 250;}
Code:
if(CH_Superjump == 1){
if(GetAsyncKeyState(VK_CONTROL) &1){
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0){
*(float*)(dwPlayerPtr+OFS_Z) = 500;}}}
Code:
if(NoBounds){
*(float*)NoBounds1 = 0;
*(float*)NoBounds2 = 0;
*(float*)NoBounds3 = 0;}
Code:
if (CH_WTW==1){
DWORD dwPlayerPointer = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPointer != 0){
WriteAsm((void *)ADR_WTW,NOPS,3);}
}else {
if (CH_WTW==0){
WriteAsm((void *)ADR_WTW,WTWOFF,3);}}
Code:
if(CH_slot5 == 1){*(long*)(dwPlayerPtr+OFS_5SLOT) = 1;}
Code:
if(CH_slot6 == 1){*(long*)(dwPlayerPtr+OFS_6SLOT) = 1;}
Code:
if(CH_slot7 == 1){*(long*)(dwPlayerPtr+OFS_7SLOT) = 1;}
Code:
if(CH_slot8 == 1){*(long*)(dwPlayerPtr+OFS_8SLOT) = 1;}
Code:
if(CH_level == 1)
{if(dwPlayerPtr != 0){	
*(long*)(dwPlayerPtr+OFS_LEVEL) = 1400000;}}
Code:
if(CH_dinar == 1)
{if(dwPlayerPtr != 0){	
*(long*)(dwPlayerPtr+OFS_DINAR) = 0;}}
Code:
if(CH_Prone == 0)
{
WriteAsm((void *)ADR_PRONE,PRONEOFF,2);
}
if (CH_Prone==1)
{
WriteAsm((void *)ADR_PRONE,NOPS,2);
}
Code:
if(CH_nowater == 1){
*(int*)ADR_NOWATER = 0;
}else{
*(int*)ADR_NOWATER = 1;}
Code:
if(CH_AutoAmmo == 1)
if(GetAsyncKeyState(VK_END) &1)
{
DWORD dwProtect;
const BYTE nop[6] = {0x90,0x90,0x90,0x90,0x90,0x90};
VirtualProtect((void*)(ADR_AUTOAMMO), 6, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_AUTOAMMO, &nop, 6);
VirtualProtect((void*)(ADR_AUTOAMMO), 6, dwProtect, NULL);
}
Code:
if(CH_WeaponHack == 1) //Winchester
if(GetAsyncKeyState(VK_F9) &1)
{
	*(long*)(ADR_PLAYERPOINTER+ADR_WEAPONPOINTER) = 70;
}
Code:
if(CH_Bandage == 1)
{
*(int*)(ADR_BANDAGE) = 1;
}

Code:
if(CH_SuperMaster == 0)
{
*(int*)(ADR_SERVERPOINTER + OFS_SUPERMASTER) = 0;
}else{
*(int*)(ADR_SERVERPOINTER + OFS_SUPERMASTER) = 1;
}
Code:
if(CH_RoomMaster == 1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwPlayerPtr != 0)
*(int*)(dwPlayerPtr+OFS_ROOMMASTER) = 1;
}
Code:
if(CH_Spectator == 1) 
        {
*(long*)(ADR_SERVERPOINTER + ADR_SPECTATOR ) = 5;
}else{
*(long*)(ADR_SERVERPOINTER + ADR_SPECTATOR ) = 0;
}
Code:
if(CH_Ping == 0){
if(ADR_SERVERPOINTER != 0){
*(long*)(ADR_SERVERPOINTER+ADR_Ping) = 0;}}
Code:
if(CH_Ping == 1){
if(ADR_SERVERPOINTER != 0){
*(long*)(ADR_SERVERPOINTER+ADR_Ping) = 1;}}
Code:
if(CH_Ping == 2){
if(ADR_SERVERPOINTER != 0){
*(long*)(ADR_SERVERPOINTER+ADR_Ping) = 2;}}
Code:
if(CH_Ping == 3){
if(ADR_SERVERPOINTER != 0){
*(long*)(ADR_SERVERPOINTER+ADR_Ping) = 3;}}
Code:
if(CH_G1Warn == 1)
{
#define COLOR_ADM_WARNING D3DCOLOR_ARGB(255,255,0,0)
char *gmname=(char *) (ADR_D3DGMWARNING );
if (strlen(gmname)>2) {
char gmwarn[333];
sprintf(gmwarn, "ADMIN: %s => SPECTATE IN THIS ROOM", ADR_D3DGMWARNING);}}
Code:
if(CH_SniperPx == 1)
{
*(int*)(ADR_SNIPER2X ) = 1;
}
Code:
if (CH_VehicleFall == 0)
{
WriteAsm((void *)ADR_NOVEHDMG,CARDMGOFF,5);
}
if (CH_VehicleFall == 1)
{
WriteAsm((void *)ADR_NOVEHDMG,CARDMGON,5);
}
Code:
if(CH_AntiMine == 0)
WriteAsm((void *)ADR_ANTIMINE,MINEOFF,6);

if (CH_AntiMine==1)
WriteAsm((void *)ADR_ANTIMINE,NOPS,6);
Code:
if(CH_Spawn == 1){
*(int*)(ADR_NOSPAWN1) = 0;
*(int*)(ADR_NOSPAWN2) = 0;
*(int*)(ADR_NOSPAWN3) = 0;}
Code:
if(CH_ImDrunk == 1)
*(DWORD*)(ADR_IMDRUNK) = 1;
Code:
if(CH_AntiAfk == 1)
 *(int*)(ADR_ANTIAFK  ) = 1;
Code:
if(Extra1){*(int*)ExtraAmmo1 = 1;}
if(Extra2){*(int*)ExtraAmmo2 = 1;}
Code:
if(FullFog){
*(float*)FarFog  = 0;
*(float*)NearFog = 0;}
Code:
if(sp5){*(int*)(SP5) = 1;}
if(sp10){*(int*)(SP10) = 1;
Code:
if(Premium==1){*(long*)(ServerPTR+Adr_Premium) = 1 ;}
if(Premium==2){*(long*)(ServerPTR+Adr_Premium) = 2 ;}
if(Premium==3){*(long*)(ServerPTR+Adr_Premium) = 3 ;}
if(Premium==4){*(long*)(ServerPTR+Adr_Premium) = 4 ;}
Code:
if(PanicKey==1){if(GetAsyncKeyState(VK_DELETE)&1){ExitProcess(0);}}
if(PanicKey==2){if(GetAsyncKeyState(VK_ESCAPE)&1){ExitProcess(0);}}
if(PanicKey==3){if(GetAsyncKeyState(VK_HOME)&1){ExitProcess(0);}}
if(PanicKey==4){if(GetAsyncKeyState(VK_RETURN)&1){ExitProcess(0);}}
if(PanicKey==5){if(GetAsyncKeyState(VK_SPACE)&1){ExitProcess(0);}}
Code:
if(GlassWall == 0){*(int*)Glasswall = 0;}
if(GlassWall){*(int*)Glasswall = 1;}
Code:
if(RainPX==0){*(int*)OFS_Rain = 0;Sleep(20000);}
if(RainPX){*(int*)OFS_Rain = 1;}
Code:
if(MapCollor1==1){*(float*)MapCollors1 = 250;}
if(MapCollor1==2){*(float*)MapCollors1 = 500;}
if(MapCollor1==3){*(float*)MapCollors1 = 750;}
if(MapCollor1==4){*(float*)MapCollors1 = 1000;}
if(MapCollor1==5){*(float*)MapCollors1 = 1500;}
if(MapCollor1==6){*(float*)MapCollors1 = 2000;}
if(MapCollor1==7){*(float*)MapCollors1 = 2500;}
if(MapCollor1==8){*(float*)MapCollors1 = 3000;}
if(MapCollor1==9){*(float*)MapCollors1 = 5000;}

if(MapCollor2==1){*(float*)MapCollors2 = 250;}
if(MapCollor2==2){*(float*)MapCollors2 = 500;}
if(MapCollor2==3){*(float*)MapCollors2 = 750;}
if(MapCollor2==4){*(float*)MapCollors2 = 1000;}
if(MapCollor2==5){*(float*)MapCollors2 = 1500;}
if(MapCollor2==6){*(float*)MapCollors2 = 2000;}
if(MapCollor2==7){*(float*)MapCollors2 = 2500;}
if(MapCollor2==8){*(float*)MapCollors2 = 3000;}
if(MapCollor2==9){*(float*)MapCollors2 = 5000;}

if(MapCollor3==1){*(float*)MapCollors3 = 250;}
if(MapCollor3==2){*(float*)MapCollors3 = 500;}
if(MapCollor3==3){*(float*)MapCollors3 = 750;}
if(MapCollor3==4){*(float*)MapCollors3 = 1000;}
if(MapCollor3==5){*(float*)MapCollors3 = 1500;}
if(MapCollor3==6){*(float*)MapCollors3 = 2000;}
if(MapCollor3==7){*(float*)MapCollors3 = 2500;}
if(MapCollor3==8){*(float*)MapCollors3 = 3000;}
if(MapCollor3==9){*(float*)MapCollors3 = 5000;}
Code:
if(SkyWalk){*(float*)(dwPlayerPtr+OFS_Z) = 600;}
Code:
if(QuickPlant==0){WriteAsm(( void *)Adr_QPlant,QuickPlantOff,2);}
if(QuickPlant==1){WriteAsm(( void *)Adr_QPlant,QuickPlantOn,2);}
Code:
if(NoSpread){if(dwPlayerPtr!=0){*(float*)Nospread = 0;}}
Code:
if(NoRecoil){if(dwPlayerPtr!=0){
*(float*)NoRecoil1 = 0;
*(float*)NoRecoil2 = 0;
*(float*)NoRecoil3 = 0;}}
Menu -> CloseWarrock Instantly
Code:
if(closewr){ExitProcess(0);}
Code:
if(Fast_LockOn==1){*(int*)FastLock_on = 1;}
Code:
if(AutoDie){KB(VK_F4);}
if(AutoEnter){KB(VK_RETURN);}
if(AutoJump){KB(VK_SPACE);}
if(AutoF){KB('f');}
if(AutoTele){KB(VK_F11);}
Code:
////void __cdecl MsgBox(char* text){ //WarRock Style MSGBox
////        void* MsgF = (void*) 0x71BCE0;
////	void* MsgG = (void*) 0x43DD70;
////        _asm
////        {
////            push    ecx
////            mov     ecx, esp
////            mov     [esp+8], esp
////            push    text
////            call      MsgF 
////            call      MsgG 
////            add      esp, 4
////        }
//// }
Code:
if(WaterCollor){
*(float*)WaterCollor1 = 33943;
*(float*)WaterCollor2 = 343;
*(float*)WaterCollor3 = 393; Rehook();}//Find 'Rehook' yourself
Code:
if(WaterCollor){
*(float*)WaterCollor1 = 33943;
*(float*)WaterCollor2 = 343;
*(float*)WaterCollor3 = 393; Rehook();}
if(Waterdeep){
*(float*)WaterDeep1 = 33943;
*(float*)WaterDeep2 = 343;
*(float*)WaterDeep3 = 393; Rehook();}//Find 'Rehook' yourself
//--[Bytes]--//
BYTE QuickPlantOn [] = { 0x7D,0x16 };
BYTE QuickPlantOff [] = { 0x7D,0x53 }
#1 · edited 15y ago · 15y ago
TheCamels8
TheCamels8
Good job bro!
#2 · 15y ago
L3
L3G3ND_KILL3R
THanks for this
This will make coders more easier
#3 · 15y ago
Alen
Alen
Got daum. So much stuff just waiting to c+p by noobs
#4 · 15y ago
ryski123
ryski123
Thanks man !!! 1st thank?!?
#5 · edited 15y ago · 15y ago
~Matrix
~Matrix
Good job!
Why th hell did you post that, leechers will only C+P
#6 · 15y ago
ryski123
ryski123
Quote Originally Posted by ~Matrix View Post
Good job!
Why th hell did you post that, leechers will only C+P
He was a bit clever, he left a few things out I know what they are because ive just updated my hack with a few of these
#7 · 15y ago
kip3300
kip3300
is this for a D3D?
#8 · 15y ago
AeroMan
AeroMan
Quote Originally Posted by kip3300 View Post
is this for a D3D?
Does not matter, Every nomenu Snippet can be used as D3D snippet, so a D3D snippet can also be used as a nomenu snippet
#9 · 15y ago
SU
superman2023
how do use these codes?? im new to hacking PLEASE HELP
#10 · 15y ago
Wizdom-X
Wizdom-X
Quote Originally Posted by superman2023 View Post
how do use these codes?? im new to hacking PLEASE HELP
make a new Form ant pu tit to- C++ File(cpp)
left click Rescouce file then pick C++ File(cpp)

Then name it Codes or Main.cpp then put the code in
then you need to get the Addys for the hack you need!

Im working on my Menu:

D3D Hacks:

Chams
Chams Color 1
WallHack

Wepon Hacks:

No Recoil
No Spread

Player Hacks:

Super Jump
Nfd - No Fall Damege


Sever Hacks

5-th Slot
CloseWarrock Instantly
Gm Warning
#11 · 15y ago
ryski123
ryski123
Quote Originally Posted by Wizdom-X View Post
make a new Form ant pu tit to- C++ File(cpp)
left click Rescouce file then pick C++ File(cpp)

Then name it Codes or Main.cpp then put the code in
then you need to get the Addys for the hack you need!

Im working on my Menu:

D3D Hacks:

Chams
Chams Color 1
WallHack

Wepon Hacks:

No Recoil
No Spread

Player Hacks:

Super Jump
Nfd - No Fall Damege


Sever Hacks

5-th Slot
CloseWarrock Instantly
Gm Warning
Can you PM me the Close warrock Function/declare/define and No Spread addy please
#12 · 15y ago
IH-DjsantiX
IH-DjsantiX
good job man
thx you
#13 · 15y ago
HAxCodER™
HAxCodER™
OMG tnx 100% like ^^
#14 · 15y ago
ST
SteamAss
Awsome Good Job
#15 · 15y ago
Posts 1–15 of 42 · Page 1 of 3

Post a Reply

Tags for this Thread

None