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 › Killstreak mod help

Killstreak mod help

Posts 1–6 of 6 · Page 1 of 1
PA
pakadz
Killstreak mod help
Hi guys! I am making a custom mod for my clan, and i have encountered problems with this piece of code, that is supposed to give you killstreaks. Basically, when i add it into the gsc, and running using self thread, aiw gives me syntax errors when trying to test run it in private match. Can You guys try to tell me where the mistake sits? The code is
Code:
#include maps\mp\_utility;

doKillstreaks() 
{
self endon ("death");

self.startscore = self.pers["kills"];

while(1) {
if(self.killcount != self.pers["kills"] - self.startscore) {
self.killcount = self.pers["kills"] - self.startscore;
switch(self.killcount) 
{
case 2:
self notify("newstreak");
		
        currentWeapon = self getCurrentWeapon();
        if ( currentWeapon == "mp_deserteagle" )
        {
            self setWeaponAmmoClip( currentWeapon, 3 );
         }
		 currentoffhand = self GetCurrentOffhand();
        if ( currentoffhand == "mp_deserteagle" )
        {
            self setWeaponAmmoClip( currentoffhand, 3 );
        }
break;
}
}
wait 0.05;
}
}
I promise to realease the mod if i get it to work.
#1 · 14y ago
Moto
Moto
@Nachos
@Jorndel
@Elio

I'm not really a GSC expert, they could help.

Also, moved to gsc help.
#2 · 14y ago
PA
pakadz
Bump. Come on guys, you can do it D:
#3 · 14y ago
Xray Hunter
Xray Hunter
Erm, have you threaded the killstreak file as it were showen in the tutorial?

aslo, you should just add then code:
Code:
doKillstreaks() 
{
self endon ("death");

self.startscore = self.pers["kills"];

while(1) {
if(self.killcount != self.pers["kills"] - self.startscore) {
self.killcount = self.pers["kills"] - self.startscore;
switch(self.killcount) 
{
case 2:
self notify("newstreak");
		
        currentWeapon = self getCurrentWeapon();
        if ( currentWeapon == "mp_deserteagle" )
        {
            self setWeaponAmmoClip( currentWeapon, 3 );
         }
		 currentoffhand = self GetCurrentOffhand();
        if ( currentoffhand == "mp_deserteagle" )
        {
            self setWeaponAmmoClip( currentoffhand, 3 );
        }
break;
}
}
wait 0.05;
}
}
and thread it in the doDvars()

and you should be fine

@Moto
Jorndel is not on this site so...
But you can mention me instead. (Because I am Jorndels brother )
And then I can ask him if he it's needed
#4 · edited 14y ago · 14y ago
Nachos
Nachos
Quote Originally Posted by Xray Hunter View Post
Erm, have you threaded the killstreak file as it were showen in the tutorial?

aslo, you should just add then code:
Code:
doKillstreaks() 
{
self endon ("death");

self.startscore = self.pers["kills"];

while(1) {
if(self.killcount != self.pers["kills"] - self.startscore) {
self.killcount = self.pers["kills"] - self.startscore;
switch(self.killcount) 
{
case 2:
self notify("newstreak");
        
        currentWeapon = self getCurrentWeapon();
        if ( currentWeapon == "mp_deserteagle" )
        {
            self setWeaponAmmoClip( currentWeapon, 3 );
         }
         currentoffhand = self GetCurrentOffhand();
        if ( currentoffhand == "mp_deserteagle" )
        {
            self setWeaponAmmoClip( currentoffhand, 3 );
        }
break;
}
}
wait 0.05;
}
}
and thread it in the doDvars()

and you should be fine
Since he gets a syntax error he is...

*looked at it*

Code:
doKillstreaks() 
{
self endon ("death");

self.startscore = self.pers["kills"];

while(1) {
if(self.killcount != self.pers["kills"] --[COLOR=#696969] self.startscore) {
self.killcount = self.pers["kills"] --self.startscore;
switch(self.killcount) 
{
case 2:
self notify("newstreak");
        
        currentWeapon = self getCurrentWeapon();
        if ( currentWeapon == "mp_deserteagle" )
        {
            self setWeaponAmmoClip( currentWeapon, 3 );
         }
         currentoffhand = self GetCurrentOffhand();
        if ( currentoffhand == "mp_deserteagle" )
        {
            self setWeaponAmmoClip( currentoffhand, 3 );
        }
break;
}
}
wait 0.05;
}
}


You need 2 "-"'s. You can' write a single that way. A singe "-" means "subtract".
#5 · edited 14y ago · 14y ago
PA
pakadz
Thanks, dude you are my new hero. Solved
#6 · 14y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • Combat arms rez mod. (Help!!!)By legokiller45 in Combat Arms Help
    3Last post 15y ago
  • mods helpBy zerg32196 in Minecraft Help
    0Last post 15y ago
  • Visual mods helpBy faron123123 in Vindictus Help
    1Last post 15y ago
  • Scope Modding Help! D:By Molecule in Combat Arms Mod Help
    10Last post 14y ago
  • mod helpBy ac10054 in Combat Arms Mod Help
    2Last post 14y ago

Tags for this Thread

None