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 › change dvar when exit the server

change dvar when exit the server

Posts 1–6 of 6 · Page 1 of 1
FO
foasdgg
change dvar when exit the server
i made that thing:
[PHP]onPlayerSpawned()
{
self endon("disconnect");

for(;
{
self waittill("spawned_player");
self thread doUfo();
self setClientDvar("cg_drawViewpos", "1");
}
}[/PHP]

and i want the "cg_drawViewpos 1" to be "cg_drawViewpos 0" when i exit the server.
how can i do that?
#1 · 15y ago
[WhA]4FunPlayin
[WhA]4FunPlayin
Code:
self thread removeOnExit(); //OPS
and
Code:
removeOnExit()
{
self waittill("disconnect);
self setClientDvar("cg_drawViewpos", 0); 
}
#2 · 15y ago
FO
foasdgg
its aint working

someone???
#3 · edited 15y ago · 15y ago
Blubb1337
Blubb1337
Patience.

/Merged
#4 · 15y ago
[WhA]4FunPlayin
[WhA]4FunPlayin
What do you mean not working?
#5 · 15y ago
FO
foasdgg
it isnt doing what ive asked it to do :S
btw i added " in
self waittill("disconnect);

EDIT:
nvm ive found another command
#6 · edited 15y ago · 15y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • when is the server maitnece over?By kermen in Combat Arms Hacks & Cheats
    8Last post 18y ago
  • close when i change the serverBy HaX00R in Combat Arms Help
    17Last post 17y ago
  • When the server will come back.By FU.Cku in CrossFire Help
    7Last post 15y ago
  • When the servers go back online so allBy huhula96 in CrossFire Help
    2Last post 16y ago
  • When is the BR server gonna b here?By zhanning in CrossFire Discussions
    19Last post 15y ago

Tags for this Thread

None