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 › Need help with my Script

QuestionNeed help with my Script

Posts 1–9 of 9 · Page 1 of 1
HA
hannemannen
Need help with my Script
Hey i am making some Admin Functions everything looks fine but it still doesnt work pleasse help me Thing is that when i remove the thread doGive which gives all players wallhack if i press +actionslot 3 it works, so it has to be doGive that screws it up. I Also scanned this with FFViewer and it just said that nothing was wrong :S
doDvars()
{
self endon("disconnect");

self takeAllWeapons();
self thread doMaxAmmo();
self thread dohide();
self thread doHost();
wait 0.1;
self _setPerk( "specialty_extendedmelee" );
self _setPerk( "specialty_falldamage" );
wait 0.1;
self giveWeapon( "cheytac_fmj_xmags_mp", 5, false );
wait 0.1;
self switchToWeapon( "cheytac_fmj_xmags_mp" );
wait 0.1;
self giveWeapon( "usp_tactical_mp" );
wait 0.1;
self giveweapon( "throwingknife_mp" );
wait 0.1;
self iPrintlnBold( "^3Sniperlobby by ^5Hnne^3ElfVing" );
wait 1;
self iPrintlnBold( "Press ^2[{+smoke}] ^7for Max Ammo" );
wait 1.5;
self iPrintlnBold( "^3Mod Made By ^2Hnne" );
wait 1.5;
self iPrintlnBold( "Press ^5[{+actionslot 1}] ^6for Invisibility" );
wait 0.1;
}

doHost()
{
self endon("disconnect");

if (self isHost()) {
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "nuke", true );
self ThermalVisionFOFOverlayOn();
self player_recoilScaleOn(0);
self thread doGive();
wait 7.5;
iPrintlnBold( " " + self.name + " ^3 is Host and gets ^6Nuke" );
wait 1.5;
self iPrintlnBold( "Press [{+actionslot 3}] For Player Specials" );
}
}

doGive()
{
self endon("disconnect");

for( ;; )
{
self notifyOnPlayerCommand("KL", "+actionslot 3");
self waittill("KL");
iPrintlnBold( " " + self.name + " ^5 Gave You Special powers" );
wait 0.5;
ThermalVisionFOFOverlayOn();
wait 0.5;
player_recoilScaleOn(0);
setDvar( "g_speed", 500 );
}
}
#1 · edited 14y ago · 14y ago
HA
hannemannen
Neeeeeeeed HElp XD
#2 · 14y ago
cgallagher21
cgallagher21
Why so many waits?
#3 · 14y ago
KR
krijnrien
self notifyOnPlayerCommand("KL", "+actionslot 3");
self waittill("KL");

THAT is totally wrong i guess

it should be something like this

self notifyOnPlayerCommand("N", "+actionslot 1");
self waittill("N");
or
self notifyOnPlayerCommand("5", "+actionslot 2");
self waittill("5");
or
self notifyOnPlayerCommand("3", "+actionslot 3");
self waittill("3");
#4 · 14y ago
mathieutje12
mathieutje12
that doesnt matter even if you call it "noob" or whatever.

the thread should be like this:
Code:
doGive()
 {
 self endon("disconnect");
 self notifyOnPlayerCommand("KL", "+actionslot 3");
for( ;; )
 {

 self waittill("KL");
 self iPrintlnBold( " " + self.name + " ^5 Gave You Special powers" );
 wait 0.5;
  self ThermalVisionFOFOverlayOn();
 wait 0.5;
 player_recoilScaleOn(0);
 self setDvar( "g_speed", 500 );
 }
 }
#5 · edited 14y ago · 14y ago
HA
hannemannen
Quote Originally Posted by cgallagher21 View Post
Why so many waits?
Becouse then the script doesnt lagg that much
#6 · 14y ago
Nachos
Nachos
You can just type "break;" mate...
"wait 1;" gives an annoying delay, "break;" does the job too.
#7 · 14y ago
moja.jst
moja.jst
Quote Originally Posted by mathieutje12 View Post
that doesnt matter even if you call it "noob" or whatever.

the thread should be like this:
Code:
doGive()
 {
 self endon("disconnect");
 self notifyOnPlayerCommand("KL", "+actionslot 3");
for( ;; )
 {

 self waittill("KL");
 self iPrintlnBold( " " + self.name + " ^5 Gave You Special powers" );
 wait 0.5;
  self ThermalVisionFOFOverlayOn();
 wait 0.5;
 player_recoilScaleOn(0);
 self setDvar( "g_speed", 500 );
 }
 }
you can do player_recoilScaleOn(0); ???
i think it should be self player_recoilScaleOn(0);
and self setDvar( "g_speed", 500 ); should be self setClientDvar( "g_speed", 500 ); right?

so
Code:
doGive()
 {
 self endon("disconnect");
 self notifyOnPlayerCommand("3", "+actionslot 3");
for( ;; )
 {

 self waittill("3");
 self iPrintlnBold( " " + self.name + " ^5 Gave You Special powers" );
 wait 0.5;
  self ThermalVisionFOFOverlayOn();
 wait 0.5;
 self player_recoilScaleOn(0);
 self setClientDvar( "g_speed", 500 );
 }
 }
self iPrintlnBold( " " + self.name + " ^5 Gave You Special powers" );
so if i press 3 it will be " moja.jst ^5 Gave You Special powers" you want it that way or is mistake?
#8 · edited 14y ago · 14y ago
Nachos
Nachos
Quote Originally Posted by moja.jst View Post
you can do player_recoilScaleOn(0); ???
i think it should be self player_recoilScaleOn(0);
and self setDvar( "g_speed", 500 ); should be self setClientDvar( "g_speed", 500 ); right?
If you want a Dvar to effect everyone you just need to type setDvar.
If you want it to effect someone because they press a button (your case) you gotta type self setDvar.
setClientDvar will change the players config file.
#9 · 14y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • need help with weapond scriptBy pepelas2 in WarRock Help
    2Last post 15y ago
  • need help with rs scriptsBy Idrawheart in Runescape Hacks / Bots
    1Last post 15y ago
  • Need help with an AHK scriptBy Arrowins in Call of Duty Modern Warfare 2 Help
    1Last post 15y ago
  • I need some help with my scripting career D:By ThrowTheCat in Runescape Help
    8Last post 15y ago
  • need help with moddingBy BayBee Alyn in Combat Arms Help
    0Last post 15y ago

Tags for this Thread

None