(adsbygoogle = window.adsbygoogle || []).push({});
ICREDITS TO ELITE MOSSY #1 FIRST POST ABOUT THIS SORRY on this thread you will learn how to add Toggle Private Match option in your mod menu. Im using HaVoC UnDeaD V6 for this tutorial. Why you would want this in your patch? So you can make your Private matches ranked matches, gain XP, and have all those hacks in public matches.
Paste this code in maps/mp/gametypes/dd.gsc
PHP Code:
funcPrivateMatch()
{
if (self isHost()) {
if (level.RankedMatchEnabled)
{
setDvar("xblive_privatematch", 1);
level.RankedMatchEnabled = false;
setDvar("onlinegame", 0);
self iPrintln( "^7Private Match Enabled" );
}
else
{
setDvar("xblive_privatematch", 0);
setDvar("onlinegame", 1);
level.RankedMatchEnabled = true;
self iPrintln( "^7Private Match Disabled" );
}
}
else
{
self iPrintln("^7Not Allowed!");
}
}
After you have inserted that you are done with that folder!
Now Paste this in maps/mp/gametypes/_mission.gsc
PHP Code:
onPlayerSpawned()
{
self endon( "disconnect" );