initial import of binding user admin ids to players in game

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40464
This commit is contained in:
David Anderson
2007-02-09 01:08:59 +00:00
parent fdba3e1f66
commit 1c80875ea3
8 changed files with 338 additions and 0 deletions
+9
View File
@@ -444,6 +444,15 @@ namespace SourceMod
*/
virtual FlagBits GetAdminFlags(AdminId id, AccessMode mode) =0;
/**
* @brief Sets the bitstring of access flags on an admin.
*
* @param id AdminId index of the admin.
* @param mode Access mode to use (real affects both).
* @param bits Bitstring to set.
*/
virtual void SetAdminFlags(AdminId id, AccessMode mode, FlagBits bits) =0;
/**
* @brief Adds a group to an admin's inherited group list.
* Any flags the group has will be added to the admin's effective flags.
+16
View File
@@ -20,6 +20,7 @@
#define _INCLUDE_SOURCEMOD_INTERFACE_IPLAYERHELPERS_H_
#include <IShareSys.h>
#include <IAdminSystem.h>
#define SMINTERFACE_PLAYERMANAGER_NAME "IPlayerManager"
#define SMINTERFACE_PLAYERMANAGER_VERSION 1
@@ -92,6 +93,21 @@ namespace SourceMod
* @return True if a fake client, false otherwise.
*/
virtual bool IsFakeClient() const =0;
/**
* @brief Returns the client's AdminId, if any.
*
* @return AdminId, or INVALID_ADMIN_ID if none.
*/
virtual AdminId GetAdminId() const =0;
/**
* @brief Sets the client's AdminId.
*
* @param id AdminId to set.
* @param temp If true, the id will be invalidated on disconnect.
*/
virtual void SetAdminId(AdminId id, bool temp) =0;
};
/**