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 Server / GSC Modding › Call of Duty Modern Warfare 2 GSC Modding Help/Discussion › [SOLVED] [HELP] Bad Syntax (Small code, dont worry :) )

[SOLVED] [HELP] Bad Syntax (Small code, dont worry :) )

Posts 1–5 of 5 · Page 1 of 1
CainFool
CainFool
[SOLVED] [HELP] Bad Syntax (Small code, dont worry :) )
CODE: My doDvars
Code:
doDvars {
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_minigun", false );
}
CODE: My OnPlayerSpawned
Code:
onPlayerSpawned()
{
	self endon("disconnect");
                if(self isHost())
                {
                for(;;)
                {
                 self thread doDvars();
                }
                }

	for(;;)
	{
		self waittill("spawned_player");
	}
}
Help?
#1 · edited 16y ago · 16y ago
Josephlittle™
Josephlittle™
you are using a ;;;;;;;;; after ifself is host....
#2 · 16y ago
CainFool
CainFool
Yeah, so whenever I am host it will give me unlimited Chopper Gunners :/

Give me your fixed code.
#3 · 16y ago
Josephlittle™
Josephlittle™
Code:
onPlayerSpawned()
{
	self endon("disconnect");
	for(;;)
	{
		self waittill("spawned_player");
                if(self isHost())
                 {
                while(1)
                 {
                 self maps\mp\killstreaks\_killstreaks::giveKillstreak( "helicopter_minigun", false );
                 }
                 }
                
	}
}
#4 · 16y ago
Insane
Insane
/Marked as Solved
#5 · 16y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • [BAD Syntax] My codes HelpBy CainFool in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    4Last post 16y ago
  • [HELP] Bad SyntaxBy pieboy95 in Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    14Last post 16y ago
  • Help.....! bad syntax error..By tjwjdqls75 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    14Last post 16y ago
  • [Solved]Help with bad syntaxBy lior19940 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    3Last post 15y ago
  • [HELP] Fast Mouse Click Code[Solved]By <(-_-)> in Visual Basic Programming
    6Last post 16y ago

Tags for this Thread

None