public/IPlayerHelpers.h
changeset 2777 d2c1c4ace151
parent 2667 8c037c7508d4
child 3178 57f9f1e6a6df
     1.1 --- a/public/IPlayerHelpers.h	Mon Aug 24 09:02:10 2009 +1200
     1.2 +++ b/public/IPlayerHelpers.h	Mon Aug 24 09:05:54 2009 +1200
     1.3 @@ -41,7 +41,7 @@
     1.4  #include <IAdminSystem.h>
     1.5  
     1.6  #define SMINTERFACE_PLAYERMANAGER_NAME		"IPlayerManager"
     1.7 -#define SMINTERFACE_PLAYERMANAGER_VERSION	10
     1.8 +#define SMINTERFACE_PLAYERMANAGER_VERSION	11
     1.9  
    1.10  struct edict_t;
    1.11  class IPlayerInfo;
    1.12 @@ -196,7 +196,30 @@
    1.13  		 *
    1.14  		 * @return		True if authorized, false otherwise.
    1.15  		 */
    1.16 -		virtual bool IsAuthorized() =0;
    1.17 +		virtual bool IsAuthorized() =0;
    1.18 +		
    1.19 +		/**
    1.20 +		 * @brief Kicks the client with a message
    1.21 +		 *
    1.22 +		 * @param message   The message shown to the client when kicked
    1.23 +		 */
    1.24 +		virtual void Kick(const char *message) =0;
    1.25 +		
    1.26 +		/**
    1.27 +		 * @brief Returns whether the client is marked as being in the kick
    1.28 +		 * queue. The client doesn't necessarily have to be in the actual kick
    1.29 +		 * queue for this function to return true.
    1.30 +		 *
    1.31 +		 * @return      True if in the kick queue, false otherwise.
    1.32 +		 */
    1.33 +		virtual bool IsInKickQueue() =0;
    1.34 +		
    1.35 +		/**
    1.36 +		 * @brief Marks the client as being in the kick queue. They are not
    1.37 +		 * actually added to the kick queue. Use IGameHelpers::AddDelayedKick()
    1.38 +		 * to actually add them to the queue.
    1.39 +		 */
    1.40 +		virtual void MarkAsBeingKicked() =0;
    1.41  	};
    1.42  
    1.43  	/**