/**
* 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().
*
* @return Maximum number of clients allowed.
*/
native GetMaxClients();
// Example
int maxPlayers = GetMaxClients();