CAdminControl

Admin control panel.

Type: Reference type

Methods

Declaration Description
void SetReservedSlots(uint uiReservedSlots) Sets the number of reserved slots.
uint GetReservedSlots() const Gets the number of reserved slots.
bool KillPlayer(CBasePlayer@ pKiller, CBasePlayer@ pKillee, float flRespawntime = -1.0f) Kills the given player. Killing player must have admin rights. Target player cannot be an admin.
bool KillPlayer(CBasePlayer@ pKillee, float flRespawntime = -1.0f) Kills the given player.
bool KickPlayer(CBasePlayer@ pKicker, CBasePlayer@ pKickee, const float flCustomBanTime = -1) Kicks the given player. Kicking player must have admin rights. Target player cannot be an admin.
bool KickPlayer(CBasePlayer@ pKickee, const float flCustomBanTime = -1) Kicks the given player.
bool BanPlayer(CBasePlayer@ pBanner, CBasePlayer@ pBannee, const float flCustomBanTime = -1) Bans the given player. Banning player must have admin rights Target player cannot be an admin.
bool BanPlayer(CBasePlayer@ pBannee, const float flCustomBanTime = -1) Bans the given player.
bool SlapPlayer(CBasePlayer@ pSlapper, CBasePlayer@ pSlappee, float flDamage, const Vector& in vecDirection, int iDamageType = 0) Slaps the given player. Slapping player must have admin rights. Target player cannot be an admin.
bool SlapPlayer(CBasePlayer@ pSlappee, float flDamage, const Vector& in vecDirection, int iDamageType = 0) Slaps the given player.
bool SlapPlayer(CBasePlayer@ pSlapper, CBasePlayer@ pSlappee, float flDamage, int iDamageType = 0) Slaps the given player. Slapping player must have admin rights. Target player cannot be an admin. Slap direction is randomized.
bool SlapPlayer(CBasePlayer@ pSlappee, float flDamage, int iDamageType = 0) Slaps the given player. Slap direction is randomized.