e54385991 / cs2-MiniAdmin

Adds basic administrator functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IF YOU FIND A BUG, PLEASE TEXT ME AT DISCORD: thesamefabius

cs2-MiniAdmin

Adds basic administrator functions

Installation

  1. Install CounterStrike Sharp and Metamod:Source
  2. Download MiniAdmin
  3. Unzip the archive and upload it to the game server

Commands

For administrators:

Command Description Admin Flag
css_admin, !admin opens the admin menu -
css_ban "#userid or username" "time_minutes or 0 - permanently" [reason] Bans a player BAN
css_unban "steamid" "reason", !unban "steamid" [reason] Unbans the player UNBAN
css_mute <#userid or username> <time_seconds> [reason] Turns off player voice chat MUTE
css_unmute <steamid or #userid> [reason] Enables voice chat for the player UNBAN
css_gag <#userid or username> <time_seconds> [reason] Disables player chat MUTE
css_ungag <steamid or #userid> [reason] Enables player chat UNBAN
css_slay "#userid or username", !slay "userid" Allows you to kill a player SLAY
css_kick "#userid or username", !kick "userid" Allows you to kick a player from the server KICK
css_map "name_map", !map "name_map" Allows you to change the map on the server MAP
css_rcon <command> Changes cvar with rcon RCON
css_slap <#userid or username> [damage] Slap a player SLAY
css_who, !who Shows all players, admin, and game time -

To write to admin chat, you need to open Team chat and write @MYTEXT

FLAGS:

Ban = a
Unban = b
Mute = c
AdminChat = d
Slay = e
Kick = f
Map = g
Rcon = h
Root = z

(example SteamId: STEAM_0:1:123456)

For chief administrators:

css_addadmin "username" "steamid" "immunity" "flags" "time_minutes or 0 - permanently", - Adds an administrator(server console only)

css_deleteadmin "steamid" - Removes the administrator(server console only)

(example SteamId: STEAM_0:1:123456)

Configs

The configuration is generated automatically next to the plugin dll

database.json
{
  "Connection": {
    "Host": 	"HOST",
    "Database": "NAME_DATABASE",
    "User": 	"NAME_USER",
    "Password": "PASSWORD"
  }
}

maps.txt
You just put the name of your maps here.

About

Adds basic administrator functions


Languages

Language:C# 100.0%