- clarified GetMaxClients + OnPluginStart
- added a MAX_NAME_LENGTH define for player names --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401348
This commit is contained in:
parent
dd4974b2af
commit
a1acf91af7
@ -43,6 +43,7 @@ enum NetFlow
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define MAXPLAYERS 64 /**< Maximum number of players that can be in server */
|
#define MAXPLAYERS 64 /**< Maximum number of players that can be in server */
|
||||||
|
#define MAX_NAME_LENGTH 65 /**< Maximum buffer required to store a client name */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called on client connection.
|
* Called on client connection.
|
||||||
@ -130,7 +131,9 @@ forward Action:OnClientPreAdminCheck(client);
|
|||||||
forward OnClientPostAdminCheck(client);
|
forward OnClientPostAdminCheck(client);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the maximum number of clients allowed on the server.
|
* 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.
|
* @return Maximum number of clients allowed.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user