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 › Combat Arms Hacks & Cheats › Combat Arms Europe Hacks › Combat Arms EU Hack Coding/Source Code › How Can I Improve This Code ?

How Can I Improve This Code ?

Posts 1–9 of 9 · Page 1 of 1
KE
kelechi96
How Can I Improve This Code ?
Code:
void main()
{
	bool NxChamOn = 0;
	bool NoSwayOn = 0;
	bool PickupOn = 0;
	bool NoSpreadOn = 0;
	bool RemovalsOn = 0;
	bool FastReloadOn = 0;
	bool NoRecoilOn = 0;
	bool Panic = 0;

	while(true)
	{
//Show FPS
		PushToConsole("ShowFps 1");
//Nx Chams
		if(GetAsyncKeyState(VK_NUMPAD1)&1)
			NxChamOn = !NxChamOn;
		if(NxChamOn)
			PushToConsole("SkelModelStencil 1" );
		else
			PushToConsole("SkelModelStencil 0" );
		if(Panic)
			PushToConsole("SkelModelStencil 0" );
//No Sway
		if(GetAsyncKeyState(VK_NUMPAD2)&1)
			NoSwayOn = !NoSwayOn;
		if(NoSwayOn)
			PushToConsole("WeaponSway 0.000000" );
		else
			PushToConsole("WeaponSway 1.000000" );
		if(Panic)
			PushToConsole("SkelModelStencil 0" );
//Pickup
		if(GetAsyncKeyState(VK_NUMPAD3)&1)
			PickupOn = !PickupOn;
		if(PickupOn)
			PushToConsole("ActivationDistance 999999" );
		else
			PushToConsole("ActivationDistance 10" );
		if(Panic)
			PushToConsole("SkelModelStencil 0" );
//No Spread
		if(GetAsyncKeyState(VK_NUMPAD4)&1)
			NoSpreadOn = !NoSpreadOn;
		if(NoSpreadOn)
		{
			PushToConsole("PerturbRotationEffect  0.000000" );
			PushToConsole("PerturbIncreaseSpeed 0.000000" );
			PushToConsole("PerturbWalkPercent 0.000000" );
			PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
			PushToConsole("PerturbRecoil 0.000000" );
			PushToConsole("FireMovePerturb 0.000000" );
			PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
			PushToConsole("ZoomedFireMovePerturb 0.000000" );
			PushToConsole("ZoomedFireDuckPerturb 0.000000" );
		}
		else
		{
			PushToConsole("PerturbRotationEffect  3.000000" );
			PushToConsole("PerturbIncreaseSpeed 3.000000" );
			PushToConsole("PerturbWalkPercent 9.000000" );
			PushToConsole("PerturbFiringIncreaseSpeed 0.500000" );
			PushToConsole("PerturbRecoil 9.000000" );
			PushToConsole("FireMovePerturb 9.000000" );
			PushToConsole("ZoomedFireMoveDuckPerturb 9.000000" );
			PushToConsole("ZoomedFireMovePerturb 9.000000" );
			PushToConsole("ZoomedFireDuckPerturb 9.000000" );
		}
		if(Panic)
			PushToConsole("SkelModelStencil 0" );
//Removals
		if(GetAsyncKeyState(VK_NUMPAD5)&1)
			RemovalsOn = !RemovalsOn;
		if(RemovalsOn)
		{
			PushToConsole("DynamicLight 0" );
			PushToConsole("EnableWeatherFX 0" );
			PushToConsole("MuzzleLight 0" );
			PushToConsole("SnowEnable 0" );
			PushToConsole("CamDamage 0" );
			PushToConsole("ModelApplySun 0" );
			PushToConsole("ClientFXDetailLevel 0" );
			PushToConsole("ModelShadow_Proj_Enable 0" );
			PushToConsole("DebrisFXLevel 0" );
		}
		if(!RemovalsOn)
		{
			PushToConsole("DynamicLight 0" );
			PushToConsole("EnableWeatherFX 0" );
			PushToConsole("MuzzleLight 0" );
			PushToConsole("SnowEnable 0" );
			PushToConsole("CamDamage 0" );
			PushToConsole("ModelApplySun 0" );
			PushToConsole("ClientFXDetailLevel 0" );
			PushToConsole("ModelShadow_Proj_Enable 0" );
			PushToConsole("DebrisFXLevel 0" );
		}
		if(Panic)
			PushToConsole("SkelModelStencil 0" );
//Reload Hack
		if(GetAsyncKeyState(VK_NUMPAD6)&1)
			FastReloadOn = !FastReloadOn;
		if(FastReloadOn)
			PushToConsole("ReloadSpeed 0.000000" );
		else
			PushToConsole("ReloadSpeed 3.000000" );
		if(Panic)
			PushToConsole("SkelModelStencil 0" );
//No Recoil
/*		if(GetAsyncKeyState(VK_NUMPAD7)&1)
			NoRecoil = !NoRecoil;
		if(NoRecoilOn)
		{
			memcpy((LPVOID)(0x3741A700),"\0x90\0x90\0x90", 3);			
			memcpy((LPVOID)(0x3741A714),"\0x90\0x90\0x90", 3);			
			memcpy((LPVOID)(0x3741A717),"\0x90\0x90\0x90\0x90\0x90\0x90", 6);
			memcpy((LPVOID)(0x37418209),"\0x90\0x90\0x90", 3);
			memcpy((LPVOID)(0x3741A720),"\0x90\0x90\0x90", 3);
		}
		if(GetAsyncKeyState(VK_NUMPAD7)&1 && !NoRecoilOn)
		{
			NoRecoilOn = 0;
			memcpy((LPVOID)(0x3741A700),"\0xD8\0x66\0x54", 3);			
			memcpy((LPVOID)(0x3741A714),"\0xD9\0x46\0x54", 3);			
			memcpy((LPVOID)(0x3741A717),"\0xD9\0x5E\0x54\0xD9\0x46\0x48", 6);
			memcpy((LPVOID)(0x37418209),"\0xD9\0x46\0x48", 3);
			memcpy((LPVOID)(0x3741A720),"\0xD9\0x5E\0x48", 3);
		}
		if(Panic)
		{
			NoRecoilOn = 0;
			memcpy((LPVOID)(0x3741A700),"\0xD8\0x66\0x54", 3);			
			memcpy((LPVOID)(0x3741A714),"\0xD9\0x46\0x54", 3);			
			memcpy((LPVOID)(0x3741A717),"\0xD9\0x5E\0x54\0xD9\0x46\0x48", 6);
			memcpy((LPVOID)(0x37418209),"\0xD9\0x46\0x48", 3);
			memcpy((LPVOID)(0x3741A720),"\0xD9\0x5E\0x48", 3);;
		}
*/	
//Panic
		if(GetAsyncKeyState(VK_NUMPAD0)&1)
			Panic = !Panic;
		Sleep(50);
	}
}
#1 · 16y ago
Kuro Tenshi
Kuro Tenshi
maybe by fixing the code :3 comon if u want to expect this to be leech prove ill screw you stuck to your chair, and the chair to the ground:
[php]
void main()
{
bool NxChamOn = 0;
bool NoSwayOn = 0;
bool PickupOn = 0;
bool NoSpreadOn = 0;
bool RemovalsOn = 0;
bool FastReloadOn = 0;
bool NoRecoilOn = 0;
bool Panic = 0;

while(true)
{
//Show FPS
PushToConsole("ShowFps 1");
//Nx Chams
if(GetAsyncKeyState(VK_NUMPAD1)&1)
NxChamOn = !NxChamOn;
if(NxChamOn)
PushToConsole("SkelModelStencil 1" );
else
PushToConsole("SkelModelStencil 0" );
if(Panic)
PushToConsole("SkelModelStencil 0" );
//No Sway
if(GetAsyncKeyState(VK_NUMPAD2)&1)
NoSwayOn = !NoSwayOn;
if(NoSwayOn)
PushToConsole("WeaponSway 0.000000" );
else
PushToConsole("WeaponSway 1.000000" );
if(Panic)
PushToConsole("WeaponSway 1.000000" );
//Pickup
if(GetAsyncKeyState(VK_NUMPAD3)&1)
PickupOn = !PickupOn;
if(PickupOn)
PushToConsole("ActivationDistance 999999" );
else
PushToConsole("ActivationDistance 10" );
if(Panic)
PushToConsole("ActivationDistance 10" );
//No Spread
if(GetAsyncKeyState(VK_NUMPAD4)&1)
NoSpreadOn = !NoSpreadOn;
if(NoSpreadOn)
{
PushToConsole("PerturbRotationEffect 0.000000" );
PushToConsole("PerturbIncreaseSpeed 0.000000" );
PushToConsole("PerturbWalkPercent 0.000000" );
PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
PushToConsole("PerturbRecoil 0.000000" );
PushToConsole("FireMovePerturb 0.000000" );
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
PushToConsole("ZoomedFireMovePerturb 0.000000" );
PushToConsole("ZoomedFireDuckPerturb 0.000000" );
}
else
{
PushToConsole("PerturbRotationEffect 3.000000" );
PushToConsole("PerturbIncreaseSpeed 3.000000" );
PushToConsole("PerturbWalkPercent 9.000000" );
PushToConsole("PerturbFiringIncreaseSpeed 0.500000" );
PushToConsole("PerturbRecoil 9.000000" );
PushToConsole("FireMovePerturb 9.000000" );
PushToConsole("ZoomedFireMoveDuckPerturb 9.000000" );
PushToConsole("ZoomedFireMovePerturb 9.000000" );
PushToConsole("ZoomedFireDuckPerturb 9.000000" );
}
if(Panic)
{
PushToConsole("PerturbRotationEffect 3.000000" );
PushToConsole("PerturbIncreaseSpeed 3.000000" );
PushToConsole("PerturbWalkPercent 9.000000" );
PushToConsole("PerturbFiringIncreaseSpeed 0.500000" );
PushToConsole("PerturbRecoil 9.000000" );
PushToConsole("FireMovePerturb 9.000000" );
PushToConsole("ZoomedFireMoveDuckPerturb 9.000000" );
PushToConsole("ZoomedFireMovePerturb 9.000000" );
PushToConsole("ZoomedFireDuckPerturb 9.000000" );
}
//Removals
if(GetAsyncKeyState(VK_NUMPAD5)&1)
RemovalsOn = !RemovalsOn;
if(RemovalsOn)
{
PushToConsole("DynamicLight 0" );
PushToConsole("EnableWeatherFX 0" );
PushToConsole("MuzzleLight 0" );
PushToConsole("SnowEnable 0" );
PushToConsole("CamDamage 0" );
PushToConsole("ModelApplySun 0" );
PushToConsole("ClientFXDetailLevel 0" );
PushToConsole("ModelShadow_Proj_Enable 0" );
PushToConsole("DebrisFXLevel 0" );
}
if(!RemovalsOn)
{
PushToConsole("DynamicLight 1" );
PushToConsole("EnableWeatherFX 1" );
PushToConsole("MuzzleLight 1" );
PushToConsole("SnowEnable 1" );
PushToConsole("CamDamage 1" );
PushToConsole("ModelApplySun 1" );
PushToConsole("ClientFXDetailLevel 1" );
PushToConsole("ModelShadow_Proj_Enable 1" );
PushToConsole("DebrisFXLevel 1" );
}
if(Panic)
{
PushToConsole("DynamicLight 1" );
PushToConsole("EnableWeatherFX 1" );
PushToConsole("MuzzleLight 1" );
PushToConsole("SnowEnable 1" );
PushToConsole("CamDamage 1" );
PushToConsole("ModelApplySun 1" );
PushToConsole("ClientFXDetailLevel 1" );
PushToConsole("ModelShadow_Proj_Enable 1" );
PushToConsole("DebrisFXLevel 1" );
}
//Reload Hack
if(GetAsyncKeyState(VK_NUMPAD6)&1)
FastReloadOn = !FastReloadOn;
if(FastReloadOn)
PushToConsole("ReloadSpeed 0.000000" );
else
PushToConsole("ReloadSpeed 3.000000" );
if(Panic)
PushToConsole("ReloadSpeed 3.000000" );
//No Recoil
/* if(GetAsyncKeyState(VK_NUMPAD7)&1)
NoRecoilOn = !NoRecoilOn;
if(NoRecoilOn)
{
memcpy((LPVOID)(0x3741A700),"\0x90\0x90\0x90", 3);
memcpy((LPVOID)(0x3741A714),"\0x90\0x90\0x90", 3);
memcpy((LPVOID)(0x3741A717),"\0x90\0x90\0x90\0x90\ 0x90\0x90", 6);
memcpy((LPVOID)(0x37418209),"\0x90\0x90\0x90", 3);
memcpy((LPVOID)(0x3741A720),"\0x90\0x90\0x90", 3);
}
if(GetAsyncKeyState(VK_NUMPAD7)&1 && !NoRecoilOn)
{
NoRecoilOn = 0;
memcpy((LPVOID)(0x3741A700),"\0xD8\0x66\0x54", 3);
memcpy((LPVOID)(0x3741A714),"\0xD9\0x46\0x54", 3);
memcpy((LPVOID)(0x3741A717),"\0xD9\0x5E\0x54\0xD9\ 0x46\0x48", 6);
memcpy((LPVOID)(0x37418209),"\0xD9\0x46\0x48", 3);
memcpy((LPVOID)(0x3741A720),"\0xD9\0x5E\0x48", 3);
}
if(Panic)
{
NoRecoilOn = 0;
memcpy((LPVOID)(0x3741A700),"\0xD8\0x66\0x54", 3);
memcpy((LPVOID)(0x3741A714),"\0xD9\0x46\0x54", 3);
memcpy((LPVOID)(0x3741A717),"\0xD9\0x5E\0x54\0xD9\ 0x46\0x48", 6);
memcpy((LPVOID)(0x37418209),"\0xD9\0x46\0x48", 3);
memcpy((LPVOID)(0x3741A720),"\0xD9\0x5E\0x48", 3);;
}
*/
//Panic
if(GetAsyncKeyState(VK_NUMPAD0)&1)
Panic = !Panic;
Sleep(50);
}
}
[/php]

#2 · edited 16y ago · 16y ago
KE
kelechi96
I don't expect it to be leech proof I don't care if someone leeches it what do you mean by fixing the code ?
#3 · 16y ago
Kuro Tenshi
Kuro Tenshi
Quote Originally Posted by kelechi96 View Post
I don't expect it to be leech proof I don't care if someone leeches it what do you mean by fixing the code ?
yeah half ur code was either wrong or not complete now it is...
#4 · 16y ago
KE
kelechi96
is that a compliment ?
#5 · 16y ago
killerld
killerld
What you mean with "improve the code !?". Do you know that this just a part of an hotkey hack ? x)
#6 · 16y ago
Mr.Magicman
Mr.Magicman
Add a OPK /nuff said

.
#7 · 16y ago
KE
kelechi96
lol ! If only I had the skill
#8 · 16y ago
Kuro Tenshi
Kuro Tenshi
Quote Originally Posted by Mr.Magicman View Post
Add a OPK /nuff said

.
if i had the addies/mhs/ce / *see empty handed* + opk seems easier to do then telekill.
#9 · 16y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • how can i get this code!! ZackthOP7D3Dv2.dllBy onyok0 in Soldier Front General
    2Last post 16y ago
  • How can i improve this?By Gaz in Combat Arms Mod Discussion
    10Last post 15y ago
  • How can I improve Lag?By lwtint in WarRock Discussions
    15Last post 16y ago
  • How can I do this?By Pwnzor122 in CrossFire Glitches
    3Last post 16y ago
  • Can anyone translate this code ?By HeXel in C++/C Programming
    27Last post 18y ago

Tags for this Thread

None