TGame.MaxPlayers

From Soldat Community Wiki
Jump to: navigation, search
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;