From 99ce2cdf6a62f21eb9b7e1b3b02b688c6c7c330b Mon Sep 17 00:00:00 2001 From: Dawid Bepierszcz <41084667+daffyyyy@users.noreply.github.com> Date: Wed, 17 Jan 2024 23:21:37 +0100 Subject: [PATCH] 1.2.7c - `css_hide` - Hide on scoreboard Code stolen from https://github.com/DeadSwimek/cs2-hideadmin Thanks DeadSwimek ;] --- CS2-SimpleAdmin.cs | 16 +++++++++++++++- README.md | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CS2-SimpleAdmin.cs b/CS2-SimpleAdmin.cs index 6ed3f81..ec64fbf 100644 --- a/CS2-SimpleAdmin.cs +++ b/CS2-SimpleAdmin.cs @@ -36,7 +36,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig "CS2-SimpleAdmin"; public override string ModuleDescription => "Simple admin plugin for Counter-Strike 2 :)"; public override string ModuleAuthor => "daffyy"; - public override string ModuleVersion => "1.2.7b"; + public override string ModuleVersion => "1.2.7c"; public CS2_SimpleAdminConfig Config { get; set; } = new(); @@ -277,6 +277,20 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig { caller.ChangeTeam(CsTeam.None); }); + + command.ReplyToCommand("You are hidden now"); + } + [ConsoleCommand("css_who")] [CommandHelper(minArgs: 1, usage: "<#userid or name>", whoCanExecute: CommandUsage.CLIENT_AND_SERVER)] [RequiresPermissions("@css/generic")] diff --git a/README.md b/README.md index 7488686..6ca19d3 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Manage your Counter-Strike 2 server by simple commands :) - css_deladmin - Delete admin by steamid // @css/root - css_reladmin - Reload sql admins // @css/root - css_silentmode - Enable or disable silentmode for admins // @css/kick +- css_hide - Hide admin on scoreboard // @css/kick - css_admin - Display all admin commands // @css/generic - css_who <#userid or name> - Display informations about player // @css/generic - css_players - Display player list // @css/generic