CS2-SimpleAdmin 基于CS2的简单管理员插件 管理员命令 服务器管理

我不当学长 管理员组 5月前 1141

插件介绍

  • 通过简单的命令管理您的 Counter-Strike 2 服务器:).

命令

- css_addadmin <steamid> <name> <flags/groups> <immunity> [time in minutes] - Add admin by steamid // @css/root
- css_deladmin <steamid> - 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
- css_ban <#userid or name> [time in minutes/0 perm] [reason] - Ban player // @css/ban
- css_addban <steamid> [time in minutes/0 perm] [reason] - Ban player via steamid64 // @css/ban
- css_banip <ip> [time in minutes/0 perm] [reason] - Ban player via IP address // @css/ban
- css_unban <steamid or name or ip> - Unban player // @css/unban
- css_kick <#userid or name> [reason] - Kick player / @css/kick
- css_gag <#userid or name> [time in minutes/0 perm] [reason] - Gag player // @css/chat
- css_addgag <steamid> [time in minutes/0 perm] [reason] - Gag player via steamid64 // @css/chat
- css_ungag <steamid or name> - Ungag player // @css/chat
- css_mute <#userid or name> [time in minutes/0 perm] [reason] - Mute player // @css/chat
- css_addmute <steamid> [time in minutes/0 perm] [reason] - Mute player via steamid64 // @css/chat
- css_unmute <steamid or name> - Unmute player // @css/chat
- css_give <#userid or name> <weapon> - Give weapon to player // @css/cheats
- css_strip <#userid or name> - Takes all of the player weapons // @css/slay
- css_hp <#userid or name> [health] - Set player health // @css/slay
- css_speed <#userid or name> [speed] - Set player speed // @css/slay
- css_god <#userid or name> - Toggle godmode for player // @css/cheats
- css_slay <#userid or name> - Kill player // @css/slay
- css_slap <#userid or name> [damage] - Slap player // @css/slay
- css_team <#userid or name> [<ct/tt/spec/swap>] [-k] - Change player team (swap - swap player team, -k - kill player) // @css/kick
- css_vote <"Question?"> ["Answer1"] ["Answer2"] ... - Create vote // @css/generic
- css_map <mapname> - Change map // @css/changemap
- css_wsmap <name or id> - Change workshop map // @css/changemap
- css_asay <message> - Say message to all admins // @css/chat
- css_say <message> - Say message as admin in chat // @css/chat
- css_psay <#userid or name> <message> - Sends private message to player // @css/chat
- css_csay <message> - Say message as admin in center // @css/chat
- css_hsay <message> - Say message as admin in hud // @css/chat
- css_noclip <#userid or name> - Toggle noclip for player // @css/cheats
- css_freeze <#userid or name> [duration] - Freeze player // @css/slay
- css_unfreeze <#userid or name> - Unfreeze player // @css/slay
- css_respawn <#userid or name> - Respawn player // @css/cheats
- css_cvar <cvar> <value> - Change cvar value // @css/cvar
- css_rcon <command> - Run command as server // @css/rcon
- css_give <#userid or name> <WeaponName> - Gives a weapon to a Player // @css/give

- team_chat @Message - Say message to all admins // @css/chat

要求

  • CounterStrikeSharp 在 v144 上测试
  • 在MySQL(MariaDB)上测试的MySQL 服务器版本:10.11.4-MariaDB-1~deb12u1 Debian 12

配置

  • 首次启动后,需要在 addons/counterstrikesharp/configs/plugins/CS2-SimpleAdmin/CS2-SimpleAdmin.json 中配置插件

颜色

        public static char Default = '\x01';
        public static char White = '\x01';
        public static char Darkred = '\x02';
        public static char Green = '\x04';
        public static char LightYellow = '\x03';
        public static char LightBlue = '\x03';
        public static char Olive = '\x05';
        public static char Lime = '\x06';
        public static char Red = '\x07';
        public static char Purple = '\x03';
        public static char Grey = '\x08';
        public static char Yellow = '\x09';
        public static char Gold = '\x10';
        public static char Silver = '\x0A';
        public static char Blue = '\x0B';
        public static char DarkBlue = '\x0C';
        public static char BlueGrey = '\x0D';
        public static char Magenta = '\x0E';
        public static char LightRed = '\x0F';
 

使用颜色名称,例如{LightRed}

感谢:https://github.com/Hackmastr/css-basic-admin/ 

参考:

上传的附件:

CSGO插件分享-申明 1、本网站名称:CSGO插件分享-中文站  网址:https://bbs.csgocn.net
2、本站的宗旨在于为CSGO玩家提供一个插件分享的中文资源平台,多数插件来源于SourceMod论坛,并配以中文介绍和安装教程。
3、欢迎有能力的朋友共享有趣的CSGO插件资源。
4、本站资源大多为百度网盘,如发现链接失效,可以点: 这里进行反馈,我们会第一时间更新。
最新回复 (9)
  • 我不当学长 楼主 管理员组@Ta 1月前 0
    引用 2

    默认如果没有配置数据库信息,显示的菜单内容就都会是英文状态。

    要使用中文的话,需要修改
    cs2\game\csgo\addons\counterstrikesharp\configs\core.json文件

    "ServerLanguage": "zh-Hans"

    添加数据库信息:

    cs2\game\csgo\addons\counterstrikesharp\configs\plugins\CS2-SimpleAdmin.json

  • abc6531607 一级用户组@Ta 1月前 0
    引用 3
    这个要怎么添加管理员
  • 我不当学长 楼主 管理员组@Ta 1月前 0
    引用 4
    abc6531607 这个要怎么添加管理员

    cs2\game\csgo\addons\counterstrikesharp\configs\admin.json

    {
      "op0": {
        "identity": "76561198381281533",
        "flags": [
          "@css/custom-flag-1",
          "@css/custom-flag-2",
    	  "@css/reservation",
    	  "@css/generic",
    	  "@css/kick",
    	  "@css/ban",
    	  "@css/unban",
    	  "@css/vip",
    	  "@css/slay",
    	  "@css/changemap",
    	  "@css/cvar",
    	  "@css/config",
    	  "@css/chat",
    	  "@css/vote",
    	  "@css/password",
    	  "@css/rcon",
    	  "@css/cheats",
    	  "@css/root"
        ],
        "groups": [
          "#css/admin"
        ],
        "command_overrides": {
          "css_plugins": true,
          "css": false
        }
      },
      "Another erikj": {
        "identity": "STEAM_0:1:1",
        "flags": ["@mycustomplugin/admin"]
      }
    }

     

  • abc6531607 一级用户组@Ta 1月前 0
    引用 5
    @我不当学长  ,这个文件是会自己生成还是要我们自己创建
  • abc6531607 一级用户组@Ta 1月前 0
    引用 6

    没有admin.json

  • 我不当学长 楼主 管理员组@Ta 1月前 0
    引用 7
    abc6531607 没有admin.json
    复制一份admins.example.json,重命名为admin.json
  • Sakura●XY 一级用户组@Ta 17天前 0
    引用 8
    现在cs2是没那个起源自带的菜单了吗huh
  • 我不当学长 楼主 管理员组@Ta 17天前 0
    引用 9
    Sakura●XY 现在cs2是没那个起源自带的菜单了吗huh
    是的,目前cs2没有类似sourcemod的菜单了
  • Sakura●XY 一级用户组@Ta 17天前 0
    引用 10
    我不当学长 是的,目前cs2没有类似sourcemod的菜单了
    好吧  感觉那个聊天菜单触发的菜单真心有点反人类  或者说本来就没有菜单这一说了  希望v社能更回来(?
返回