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]Problem with ammo box...

[Solved]Problem with ammo box...

Posts 1–4 of 4 · Page 1 of 1
alistair4322
alistair4322
[Solved]Problem with ammo box...
I can see the text but I pressed F and nothing happen...
What's wrong with my code?
Code:
CreateAbox(pos, angle)
{
	box = spawn("script_model", pos );
	box setModel("com_bomb_objective");
	box.angles = angle;
	box Solid();
	for(;;)
	{		
		foreach(player in level.players)
		{
			if(Distance(box.origin, player.origin) <= 50)
			{
				player setLowerMessage("CPHint","Press ^3[{+activate}]^7 to refill ammo!");
				if(player UseButtonPressed())
				{
					maps\mp\killstreaks\_airdrop::refillAmmo();
					self playLocalSound( "ammo_crate_use" );
				}
			}
                        else
                        {
                            player clearLowerMessage("CPHint",1);
                        }
		}
	}
	wait 0.01;
}
#1 · edited 15y ago · 15y ago
master131
[MPGH]master131
Code:
self playLocalSound( "ammo_crate_use" );
Should be player not self.
#2 · 15y ago
Blubb1337
Blubb1337
/marked as solved
#3 · 15y ago
EI
einar300
OMG master.... Your fixing everything!!!
#4 · 15y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • Solve Problems with Vista and hacksBy knappy in Combat Arms Hacks & Cheats
    5Last post 18y ago
  • [SOLVED] Problem with EAM/PSEBy Demented420 in Call of Duty Modern Warfare 2 Help
    5Last post 16y ago
  • [SOLVED] Problem with online.By IdunWantUsername in Call of Duty Modern Warfare 2 Help
    1Last post 16y ago
  • [SOLVED]Problem with aIWBy Pein-sama in Call of Duty Modern Warfare 2 Help
    5Last post 16y ago
  • [SOLVED] Problem with hacksBy roky12 in CrossFire Help
    3Last post 16y ago

Tags for this Thread

None