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 › Boon Pek Weapon Spawn Code

Boon Pek Weapon Spawn Code

Posts 1–2 of 2 · Page 1 of 1
jimmynguyen3030
jimmynguyen3030
Boon Pek Weapon Spawn Code
Boon Pek Told Me To Post This SO

Code:
CreateWeapon(weapon, weaponName, weaponCost, location, angle)
{
	weaponModel = getWeaponModel( weapon );

	if( weaponModel == "" )
		weaponModel = weapon;

	if(!isDefined(angle))
		angle = 0;

	weaponSpawn = spawn( "script_model", location + (0, 0, 60) );
	weaponSpawn setModel( weaponModel );
	weaponSpawn.angles = angle;

	weaponSpawn thread WeaponThink(weapon, weaponName, weaponCost, location);

	wait 0.01;
}
Code:
WeaponThink(weapon, weaponName, weaponCost, location)
{
	self endon("disconnect");

	while(1)
	{
		foreach(player in level.players)
		{
			if(player.team != "axis")
			{
				if(distance(location, player.origin) < 25)
				{
					if(player hasWeapon( weapon ))
					{
						player.hint = "Press ^3[{+activate}] ^7to get ammo for " + weaponName + " - " + weaponCost;
					} else {
						player.hint = "Press ^3[{+activate}] ^7to buy " + weaponName + " - " + weaponCost;
					}

					if(player.buttonPressed["+activate"] == 1)
					{
						player.buttonPressed["+activate"] = 0;
						if(player.bounty >= weaponCost)
						{
							player.bounty -= weaponCost;
							player notify("CASH");
							player _giveWeapon( weapon );
							player switchToWeapon( weapon );
							player giveMaxAmmo( weapon );
						} else {
							player iPrintlnBold( game["strings"]["NOT_ENOUGH_CASH"] );
						}
					}
				}
			}
		}
		wait .05;
	}
}
Code:
CreateWeapon("weapon name", "weapon display name", "weapon cost", "weapon location (where you stand to pick it up", "weapon angle (needs a bit of tinkering ;))")
Example

Code:
CreateWeapon("rpg_mp", "RPG-7 LOL!", 150, (-1150, 4455, 536.125), (0, 90, 90));
#1 · 15y ago
TheSaboteur
TheSaboteur
its pretty old but good u share ;DD
#2 · 15y ago
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Tags for this Thread

None