Difference between revisions of "TGame.MaxPlayers"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''property MaxPlayers: Byte''''' Access mode: RW ==Description== Number representing maximum players that can play on the server at the same time.<br> When executed, p...")
 
(Description)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
Number representing maximum players that can play on the server at the same time.<br>  
 
Number representing maximum players that can play on the server at the same time.<br>  
 
When executed, players are '''never''' kicked.<br>
 
When executed, players are '''never''' kicked.<br>
 +
MaxPlayers is '''not changeable''' with [[LockedMode|Locked Mode]] ON
  
 
==Example==
 
==Example==

Latest revision as of 14:33, 23 July 2013

property MaxPlayers: Byte
 Access mode: RW

Description

Number representing maximum players that can play on the server at the same time.
When executed, players are never kicked.
MaxPlayers is not changeable with Locked Mode ON

Example

  // a never-full server
  if Game.NumPlayers = Game.MaxPlayers then
    Game.MaxPlayers := Game.MaxPlayers + 1;