ItsMods

Full Version: How to end game
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I end the match (like ending it when score limit is reached)? I pretty much know how to do it, I just don't know the function or whatever it is to end the actual match. See below.

PHP Code:
RandomCode()
{
    ..................
    ..................
    
//Now I want the game to end so..
    
level notify("match_end");
}
 
 
Othercode()
{
    .........
    
level waittill("match_end");
    
level thread MAKE_MATCH_END();//  <-------- what can i put here to make match end?


Thanks for any help Heart
Code:
ZombiesWin()
{
    wait 30;
    if(level.playerCount["allies"] < 1) level thread endGame( "axis", "Zombies Win!" );

}

This is what I use in my zombie mod. Put this in _globallogic.gsc.

Credits
-PTK: Zombie Madness
Thankyou very much!
(06-20-2011, 23:32)Madnesslink5 Wrote: [ -> ]Thankyou very much!

You are welcome.
Here's an easier way, type /disconnect in console.
He wanted to put it into the mod.
(06-22-2011, 05:31)Afgfighter Wrote: [ -> ]Here's an easier way, type /disconnect in console.

Fail troll is fail.