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 › [Help] when meeleing, suicide

[Help] when meeleing, suicide

Posts 1–15 of 15 · Page 1 of 1
ID
idiot2010
[Solved] when meeleing, suicide
hello!
i tryed to do in my mod when u knife some 1 ull suicide....
so...
is it correct code? (copied from custumstreakS)
Code:
makeSuicide()
{
	self notifyOnPlayerCommand( "E", "+Meele" );
self waittill("E");
MagicBullet( "ac130_105mm_mp", self.origin, self.origin -(0, 0, 200), self );
}
#1 · edited 15y ago · 15y ago
Marcin96
Marcin96
I think you need to add: self thread makeSuicide(); in OnPlayerSpawned()
#2 · 15y ago
ID
idiot2010
i did it on the class functions...
see
Code:
doZombie() {
	self thread createMoney();
	self giveWeapon( "defaultweapon_mp", 0, false );
        self giveWeapon( "defaultweapon_mp", 0, false );
        self setWeaponAmmoClip("defaultweapon_mp", 0 );
        self setWeaponAmmoStock("defaultweapon_mp", 10 );
        self setWeaponAmmoClip("defaultweapon_mp", 0 );
        self setWeaponAmmoStock("defaultweapon_mp", 0 );
	while(self getCurrentWeapon() == "none") {
	self switchToWeapon("defaultweapon_mp");
	wait 1; }
		
        self maps\mp\perks\_perks::givePerk("specialty_marathon");
        self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
        self maps\mp\perks\_perks::givePerk("specialty_longersprint");
        self maps\mp\perks\_perks::givePerk("specialty_lightweight");
	self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
	self maps\mp\perks\_perks::givePerk("specialty_detectexplosive");
	self thread doMoreHealthRegen();
        self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are an ^1ZOMBIE!");
		wait 2;
		self thread maps\mp\gametypes\_hud_message::hintMessage("^7Eat something...");
	wait 1;

        if(self isHost() || self.GUID == "0110000103a155fc" || self.GUID == "0110000103a1be3e" || self.GUID == "01100001036ed348" || self.GUID == "0110000103ee8d7e")
        {
        self maps\mp\perks\_perks::givePerk("specialty_thermal");
	self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
	self thread doKnifes();

        self thread maps\mp\gametypes\_hud_message::hintMessage("^7You are a PreAdmin!");
	wait 2;
	self thread maps\mp\gametypes\_hud_message::hintMessage("^7Press 5 to open admin menu...");
	wait 2;
	self thread maps\mp\gametypes\_hud_message::hintMessage("^7Press N to Toggle Wallhack...");
	self thread doWallhack();
	self thread makeSuicide();
	wait 1;
        }
}
#3 · 15y ago
Marcin96
Marcin96
Did it work? If not try to add it to OnPlayerSpawned()
#4 · 15y ago
ID
idiot2010
k ill try to thx
not working....
maybe i has to be killed?
or somthing bad with the function?
#5 · edited 15y ago · 15y ago
TA
Talamaur
_damage.gsc

[php]...

Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
{
if(sMeansOfDeath == "MOD_MELEE") {
iDamage = 1;
eAttacker suicide();
eAttacker iPrintln("^1OWNED!");
}

...[/php]

It works.
#6 · 15y ago
ID
idiot2010
huh? just to paste it in clear damage.gsc? or i need to past more?
#7 · 15y ago
-=
-=BDS=-animale
i tried your code on playerspawn and randomly on ranks.gsc it works for me but nicely thought of
#8 · 15y ago
Arasonic
Arasonic
Do you want the explode or just to die?
'Cause if you want yourself to just die, use this:
Code:
makeSuicide()
{
self notifyOnPlayerCommand( "E", "+Meele" );
self waittill("E");
self suicide();
}
#9 · 15y ago
ID
idiot2010
explode, cuz to kill some 1 who behind
#10 · 15y ago
Arasonic
Arasonic
makeSuicide()
{
self notifyOnPlayerCommand( "E", "+Melee" );
self waittill("E");
MagicBullet( "ac130_105mm_mp", self.origin, self.origin -(0, 0, 200), self );
}

You had Meele instead of Melee, if it didnt work before, that could be it..
#11 · 15y ago
ID
idiot2010
k ill try it right now thx
#12 · 15y ago
TA
Talamaur
Quote Originally Posted by idiot2010 View Post
huh? just to paste it in clear damage.gsc? or i need to past more?
Just open _damage.gsc, find 'Callback_PlayerDamage_internal' (~1053 string) and add below my changes.
#13 · 15y ago
ID
idiot2010
yey working
mark as solved
#14 · 15y ago
TriX™
TriX™
im liking the coding
#15 · 15y ago
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help] When I Log-inBy apeguy in Combat Arms Hacks & Cheats
    11Last post 17y ago
  • HELP When I try to ctrl-t it doesnt resizeBy Ariez in Art & Graphic Design
    6Last post 17y ago
  • Help When i Open my warrock intlBy mikko195 in Suggestions, Requests & General Help
    2Last post 15y ago
  • [Help] When i set 1 vision, i cant change itBy idiot2010 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    5Last post 15y ago
  • help when i play i have 2 wepons in my hand ?????By braydon in CrossFire Hacks & Cheats
    4Last post 17y ago

Tags for this Thread

None