C4 Engine
C4 Engine API Documentation

MessageMgr::GetPlayerCount

Defined in:  C4Messages.h
Returns the current number of players connected to a multiplayer game.
Prototype

int32 GetPlayerCount(voidconst;

Description
The count returned by the GetPlayerCount function includes the server, the local machine, and all other clients connected to a multiplayer game.

The maximum number of players allowed in a game can be set with the MessageMgr::SetMaxPlayerCount function.
See Also

MessageMgr::GetMaxPlayerCount

MessageMgr::SetMaxPlayerCount