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 › Removing points from only the guy purchasing

Removing points from only the guy purchasing

Posts 1–5 of 5 · Page 1 of 1
Arasonic
Arasonic
Removing points from only the guy purchasing
Yeeeeeeeeeah.
When using this code, when someone purchase Ammo, it doesnt take away 200 points, it takes away.. pretty much alot more since its foreach player.
Is there any fix to make it only take the points away from the guy purchasing? This has really been annoying me >.<

Code:
AmmOMatic(pos, angle)
{
	block = spawn("script_model", pos );
	block setModel("com_plasticcase_friendly");
	block.angles = angle;
	block Solid();
	block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
      self thread AmmoThink(pos);
      wait 0.01;
}

AmmoThink(pos)
{
        self endon("disconnect");
        for(;;)
        {
                foreach(player in level.players)
                {
                if(distance(pos, player.origin) <75 && player.cash >= 200)
                Player SetLowerMessage(1, "Press ^3[{+activate}] ^7to purchase Ammo", undefined, 25);
                else if(distance(pos, player.origin) <75 && player.cash < 200)
                Player SetLowerMessage(1, "You do not have enough ^1Cash!", undefined, 50);
                if(distance(pos, player.origin) <75 && player.cash >= 200 && Player UseButtonPressed())
                {
                        player thread refillAmmo();
                }
                if(distance(pos, player.origin) >75) Player ClearLowerMessage(1);
                }
                wait 0.05;
       }
}

refillAmmo()
{
	weaponList = self GetWeaponsListAll();

	foreach ( weaponName in weaponList )
	{
		if ( isSubStr( weaponName, "grenade" ) )
		{
			if ( self getAmmoCount( weaponName ) >= 1 )
				continue;
		} 
		self.cash -= 200;
		self giveMaxAmmo( weaponName );
	}
}
#1 · 15y ago
Yamato
Yamato
I think that I know what are you trying...., a ammo box for a zombie mod or something similar.

Try to reduce the price and see if works.
#2 · 15y ago
Arasonic
Arasonic
...
You do realize that would still make it cost more than its supposed to?
#3 · 15y ago
Yamato
Yamato
Code:
   else if(distance(pos, player.origin) <75 && player.cash < 200)
In this line of the code, you putted <200, try to put =200
#4 · 15y ago
Arasonic
Arasonic
Alright, to clear two things:
That means less than, so it wouldnt matter <-- forget that, I saw now what you meant, but I dont think it'd do anything
It only takes 200 when nobody is in the match
#5 · edited 15y ago · 15y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None