GetMaxClients Function

This function will be deprecated in a future release. Use the MaxClients variable instead.

Returns the maximum number of clients allowed on the server. This may return 0 if called before OnMapStart(), and thus should not be called in OnPluginStart().

You should not globally cache the value to GetMaxClients() because it can change from SourceTV or TF2's arena mode. Use the "MaxClients" dynamic variable documented at the top of this file.

int GetMaxClients()

Return Value

Maximum number of clients allowed.