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 › Call of Duty Hacks & Cheats › Call of Duty 6 - Modern Warfare 2 (MW2) Hacks › Call of Duty Modern Warfare 2 Private Servers › Coding a zombie mod (editing)

Coding a zombie mod (editing)

Posts 1–4 of 4 · Page 1 of 1
PP_CrazyApple
PP_CrazyApple
Coding a zombie mod (editing)
Hi, i am editing and improving this Zombie Mod by dozzer. I already done many things like dissabling planting and stuff. But i need help with this one part...

I need to make this action NOT be able to repeat.
I've tried every function like "return false;" or any kind of function but it doesnt seem to work or it gives me a syntax error.

Code:
ghost() {               //the zombie class.
	self endon ( "disconnect" );
	self endon ( "death" );
	
	self notifyOnPlayerCommand("3", "+actionslot 3");      //button for flash ,smoke etc...

	while(1) {
		self waittill("3");
		self maps\mp\perks\_perks::givePerk("specialty_thermal");  //thermal ability...

		self hide();   // ability to be invisible
		self iPrintlnBold("^2Zombie Vision On");   //Printing the mode...
		wait 20;         // i dont know how many seconds....
		self _clearPerks();
		self maps\mp\perks\_perks::givePerk("specialty_marathon");
        self maps\mp\perks\_perks::givePerk("specialty_longersprint");
	self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
        self maps\mp\perks\_perks::givePerk("specialty_lightweight");
		self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
		self maps\mp\perks\_perks::givePerk("specialty_automantle");
		self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
		self maps\mp\perks\_perks::givePerk("specialty_quieter");
		self maps\mp\perks\_perks::givePerk("specialty_coldblooded");
		self show();      // to be visible again...
		self iPrintlnBold("^2Zombie Vision Off");
	}
}
I made it so that you can turn on Zombie mode vision on for a few seconds. But when the "few seconds" are done you can repeat the action wich i don't want... if anyone would help me out i would appriciate it, thank you... Apple!
#1 · 16y ago
Neekokeen
Neekokeen
there's several ways you can do this, the easiest is to put a wait at the end:
wait 999999;
#2 · 16y ago
PP_CrazyApple
PP_CrazyApple
Quote Originally Posted by Neekokeen View Post
there's several ways you can do this, the easiest is to put a wait at the end:
wait 999999;
thank you, it worked. One more thing, can you tell me how much seconds are "wait 1;"
#3 · 16y ago
schiz
schiz
wait 1; is 1 second
#4 · 16y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • no hope zombie mod editBy erkki in Call of Duty Modern Warfare 2 Help
    1Last post 16y ago
  • Need Help With Editing Zombie Mod!By Pete8497 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    0Last post 16y ago
  • Sir Psycho Sexy's Zombie Mod Map Edits!By Th3Psycho in Call of Duty Modern Warfare 2 Server / GSC Modding
    4Last post 15y ago
  • Need Help Editing Quarantine Chaos Zombie ModBy chriso_225 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    9Last post 15y ago
  • Zombies modBy frfwolf in Call of Duty 4 - Modern Warfare (MW) Hacks
    2Last post 17y ago

Tags for this Thread

None