Added new OnClientConnected callback with correct pairing intent (bug 3311, r=pred).

This commit is contained in:
David Anderson
2008-10-18 22:14:13 -05:00
parent 5a2f8afd33
commit a6579c7bcb
2 changed files with 18 additions and 1 deletions
+11 -1
View File
@@ -59,7 +59,9 @@ enum NetFlow
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.
@@ -68,6 +70,14 @@ public const MaxClients; /**< Maximum number of players the server supports (dyn
*/
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.
*