plugins/include/clients.inc
changeset 2365 40430f687836
parent 2342 70d4ef38b90e
child 2591 15213de19689
     1.1 --- a/plugins/include/clients.inc	Fri Oct 17 02:04:09 2008 -0500
     1.2 +++ b/plugins/include/clients.inc	Sat Oct 18 22:14:13 2008 -0500
     1.3 @@ -59,7 +59,9 @@
     1.4  public const MaxClients;	/**< Maximum number of players the server supports (dynamic) */
     1.5  
     1.6  /**
     1.7 - * Called on client connection.
     1.8 + * Called on client connection.  If you return true, the client will be allowed in the server.
     1.9 + * If you return false (or return nothing), the client will be rejected.  If the client is 
    1.10 + * rejected by this forward or any other, OnClientDisconnect will not be called.
    1.11   *
    1.12   * @param client		Client index.
    1.13   * @param rejectmsg		Buffer to store the rejection message when the connection is refused.
    1.14 @@ -69,6 +71,14 @@
    1.15  forward bool:OnClientConnect(client, String:rejectmsg[], maxlen);
    1.16  
    1.17  /**
    1.18 + * Called once a client successfully connects.  This callback is paired with OnClientDisconnect.
    1.19 + *
    1.20 + * @param client		Client index.
    1.21 + * @noreturn
    1.22 + */
    1.23 +forward OnClientConnected(client);
    1.24 +
    1.25 +/**
    1.26   * Called when a client is entering the game.
    1.27   *
    1.28   * Whether a client has a steamid is undefined until OnClientAuthorized