C4 Engine
C4 Engine API Documentation

MessageMgr::SetMaxPlayerCount

Defined in:  C4Messages.h
Sets the maximum number of players that the server will allow in a multiplayer game.
Prototype

void SetMaxPlayerCount(int32 count);

Parameters
count The maximum number of players.
Description
The SetMaxPlayerCount function should be called on the machine hosting a multiplayer game to set the maximum number of players allowable. The SetMaxPlayerCount function should be called prior to calling the MessageMgr::BeginMultiplayerGame function since it is this function that tells the Network Manager how many connections may be accepted.
See Also

MessageMgr::GetMaxPlayerCount

MessageMgr::GetPlayerCount