diff -r d0625900d257 -r 40430f687836 plugins/include/clients.inc --- a/plugins/include/clients.inc Fri Oct 17 02:04:09 2008 -0500 +++ b/plugins/include/clients.inc Sat Oct 18 22:14:13 2008 -0500 @@ -59,7 +59,9 @@ public const MaxClients; /**< Maximum number of players the server supports (dynamic) */ /** - * Called on client connection. + * Called on client connection. If you return true, the client will be allowed in the server. + * If you return false (or return nothing), the client will be rejected. If the client is + * rejected by this forward or any other, OnClientDisconnect will not be called. * * @param client Client index. * @param rejectmsg Buffer to store the rejection message when the connection is refused. @@ -69,6 +71,14 @@ forward bool:OnClientConnect(client, String:rejectmsg[], maxlen); /** + * Called once a client successfully connects. This callback is paired with OnClientDisconnect. + * + * @param client Client index. + * @noreturn + */ +forward OnClientConnected(client); + +/** * Called when a client is entering the game. * * Whether a client has a steamid is undefined until OnClientAuthorized