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 › i need some help here !!

i need some help here !!

Posts 1–9 of 9 · Page 1 of 1
AD
adyson_19
i need some help here !!
i have this code
Code:
doShow()
{
        self endon("disconnect");
        anticampoff  = self createFontString("hudbig", 0.4);
        anticampon  = self createFontString("hudbig", 0.4);
        self notifyOnPlayerCommand( "UPARROW", "+lookup" );
if( level.gametype != "dm"&&level.gametype != "war"&&level.gametype != "oitc" )
	 {	
          wait .5;
	  anticampoff setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
          anticampoff setText("^1*^7**^1A^7nti^1C^7amp is ^1OFF^7**^1*");
          wait 1;}
if( level.gametype == "dm" || level.gametype == "war" || level.gametype == "oitc" )
	 {	
          wait .5;
	  anticampon setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
          anticampon setText("^1*^7**^1A^7nti^1C^7amp is ^1ON^7**^1*");
          wait 1;}
if(self isHost()) 
{
  self waittill( "UPARROW" );
  wait .5;
  announcement("^1**^7The ^1Anti^7-^1Camp ^7system is ^1OFF^7!!^1**");
       level.anticamp = 0;
       wait .5;
              anticampoff setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
       anticampoff setText("^1*^7**^1A^7nti^1C^7amp is ^1OFF^7**^1*");
       anticampon destroy();
}
wait 600;
}
and i want that when i ( the host) press the UPARROW button to do this for all the players.Not just for the host !!
Code:
 wait .5;
  announcement("^1**^7The ^1Anti^7-^1Camp ^7system is ^1OFF^7!!^1**");
       level.anticamp = 0;
       wait .5;
              anticampoff setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
       anticampoff setText("^1*^7**^1A^7nti^1C^7amp is ^1OFF^7**^1*");
       anticampon destroy();
#1 · 15y ago
master131
[MPGH]master131
wait 600? You sure about that?
Code:
doShow()
{
    self endon("disconnect");
    anticampoff  = self createFontString("hudbig", 0.4);
    anticampon  = self createFontString("hudbig", 0.4);
    self notifyOnPlayerCommand( "UPARROW", "+lookup" );
    level.anticamp = 0;
    
    if( level.gametype != "dm" && level.gametype != "war" && level.gametype != "oitc" )
    {    
        wait .5;
        anticampoff setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
        anticampoff setText("^1*^7**^1A^7nti^1C^7amp is ^1OFF^7**^1*");
        wait 1;
    }
    
    if( level.gametype == "dm" || level.gametype == "war" || level.gametype == "oitc" )
    {    
        wait .5;
        anticampon setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
        anticampon setText("^1*^7**^1A^7nti^1C^7amp is ^1ON^7**^1*");
        level.anticamp = 1;
        wait 1;
    }
    
    if(self isHost()) 
    {
        self waittill( "UPARROW" );
        wait .5;
        announcement("^1**^7The ^1Anti^7-^1Camp ^7system is ^1OFF^7!!^1**");
        level.anticamp = 0;
    }
    
    for(;;)
    {
        if(level.anticamp == 0)
        {
            wait .5;
            anticampoff setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
            anticampoff setText("^1*^7**^1A^7nti^1C^7amp is ^1OFF^7**^1*");
            anticampon destroy();
            wait 0.01;
            break;
        }
        wait 0.01;
    }
    wait 600;
}
#2 · edited 15y ago · 15y ago
AD
adyson_19
i'm sure because i call this thread at "onPlayer Connect " and i use it just once !! If is something wrong please corect me !!
#3 · 15y ago
master131
[MPGH]master131
It's better to use it at onPlayerSpawned. If you want to use it on onPlayerConnect make sure you use:
player thread doShow();

If you are using it under onPlayerSpawned use:
self thread doShow();
#4 · 15y ago
KE
kerocx
Why would u need wait 600 for onPlayerConnect, i always thought it wasnt looping ?
#5 · 15y ago
zxz0O0
zxz0O0
If you want something for all players do this
Code:
foreach(player in level.players)
{
blablabal
}
like
Code:
if(self isHost()) 
{
  self waittill( "UPARROW" );
  wait .5;
foreach(player in level.players)
{
  announcement("^1**^7The ^1Anti^7-^1Camp ^7system is ^1OFF^7!!^1**");
       level.anticamp = 0;
       wait .5;
              anticampoff setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
       anticampoff setText("^1*^7**^1A^7nti^1C^7amp is ^1OFF^7**^1*");
       anticampon destroy();
}
}
Also after the anticamp setText I would add a wait 3 or wait 4 because now it wont even show the text. It just deletes it. And its anticampon destroyElem(); not just destroy();
#6 · 15y ago
master131
[MPGH]master131
I don't think using announcement is a good idea for all players to do then EVERYONE will announce the same message and lag the server.
#7 · 15y ago
AD
adyson_19
i have a new chalenge for you guys !
take a look at this
Code:
doOwnCamper()
{
        self endon("disconnect");
		self endon("death");
	currentWeapon = self getCurrentWeapon();
for(;;)
{
	 wait 1;
         if( level.gametype == "dm" || level.gametype == "war" || level.gametype == "oitc" )
         {
              if(level.anticamp==0)
		{
			self waittill("level.anticamp==1");
		}


			self.before = self getorigin();
			wait 5;
			self.after = self getorigin();
			currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^15.^7*^1*");
self.health = int(self.health / 2);
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^14.^7*^1*");
self.health = int(self.health / 2);
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^13.^7*^1*");
self.health = int(self.health / 2);
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^12.^7*^1*");
self.health = int(self.health / 2);
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^11.^7*^1*");
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold(" ^1*^7*^1You ^7got killed for ^1camping^7*^1*");
                                iPrintln("^1" + (self.name) + "^7 got killed for ^1camping ^7too long!");
				self suicide();
								}
							}
						}
					}
				}
			}
             wait 0.5;
           }
wait 0.5;
}	
}
i want this script stop looping when a players have final stand and he is down(after you shoot him 4 times..he stays down for 20 sec - i dont want to kill him for camping !)
can u do that for me ! i dont know the code for that !
#8 · 15y ago
AZUMIKKEL
AZUMIKKEL
Quote Originally Posted by adyson_19 View Post
i have a new chalenge for you guys !
take a look at this
Code:
doOwnCamper()
{
        self endon("disconnect");
		self endon("death");
	currentWeapon = self getCurrentWeapon();
for(;;)
{
	 wait 1;
         if( level.gametype == "dm" || level.gametype == "war" || level.gametype == "oitc" )
         {
              if(level.anticamp==0)
		{
			self waittill("level.anticamp==1");
		}


			self.before = self getorigin();
			wait 5;
			self.after = self getorigin();
			currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^15.^7*^1*");
self.health = int(self.health / 2);
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^14.^7*^1*");
self.health = int(self.health / 2);
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^13.^7*^1*");
self.health = int(self.health / 2);
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^12.^7*^1*");
self.health = int(self.health / 2);
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold("^1*^7*^1M^7ove your ass or you  will be killed in ^11.^7*^1*");
				wait 1;
				self.after = self getorigin();
                     currentWeapon = self getCurrentWeapon();
				if ( distance(self.before, self.after) < 220&&!isSubStr( self getCurrentWeapon(), "ac130")&&!isSubStr( self getCurrentWeapon(), "remote")&&!isSubStr( self getCurrentWeapon(), "predator")  ) {
				self iPrintlnBold(" ^1*^7*^1You ^7got killed for ^1camping^7*^1*");
                                iPrintln("^1" + (self.name) + "^7 got killed for ^1camping ^7too long!");
				self suicide();
								}
							}
						}
					}
				}
			}
             wait 0.5;
           }
wait 0.5;
}	
}
i want this script stop looping when a players have final stand and he is down(after you shoot him 4 times..he stays down for 20 sec - i dont want to kill him for camping !)
can u do that for me ! i dont know the code for that !
Disable death streaks.
Make a _class.gsc with this
http://pastebin.com/Lv0U2p4J
#9 · 15y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • Hello! Need some help here!By Rossvelt in Battlefield Heroes Hacks
    5Last post 16y ago
  • [SOLVED]Need Some Help HereBy KiZZx in Alliance of Valiant Arms (AVA) Help
    3Last post 16y ago
  • need some help hereBy masterao in WarRock Discussions
    3Last post 16y ago
  • plz i need some help hereBy *Ex* in CrossFire Discussions
    6Last post 15y ago
  • I need some help hereBy Landid in General
    39Last post 15y ago

Tags for this Thread

None