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:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user