Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to end game
#1
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
Reply

#2
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
Reply

#3
Thankyou very much!
Reply

#4
(06-20-2011, 23:32)Madnesslink5 Wrote: Thankyou very much!

You are welcome.
Reply

#5
Here's an easier way, type /disconnect in console.
Reply

#6
He wanted to put it into the mod.
[Image: lQDUjba.jpg]
Reply

#7
(06-22-2011, 05:31)Afgfighter Wrote: Here's an easier way, type /disconnect in console.

Fail troll is fail.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  What game have you bought in the last week? RaZ 12 7,299 12-05-2013, 16:29
Last Post: Nekochan
  [GAME]The Letter Game Bandarigoda123 65 27,105 08-08-2013, 21:05
Last Post: AZUMIKKEL
  [Release] AntiRage for Infected Game Mode yokai134 17 13,355 08-04-2013, 22:22
Last Post: yokai134
  ESTRANGED best indie game I've seen so far Arteq 0 2,347 08-03-2013, 14:03
Last Post: Arteq
  [HELP] bo2 - FD1 - dis-attach the console from the game masis 8 5,465 07-17-2013, 23:01
Last Post: surtek
Smile [Release] Map & Game Type Changer Plugin (Fixed) 30mba 31 20,312 07-10-2013, 16:27
Last Post: 26hz
  Selling steam account for a game! Strentin 3 3,870 06-18-2013, 07:49
Last Post: xfxtroll
  Help Using chat outside in game Bandarigoda123 1 2,862 06-09-2013, 12:46
Last Post: Nekochan
  Help Game Not Reading Mod? Killjoy 6 5,060 06-08-2013, 14:49
Last Post: Killjoy
Brick Lesson 3: Making game in C++ Nekochan 2 3,301 06-03-2013, 15:25
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.