Promuj serwer

CSB Admin Menu v1.0.0

CSB Admin Menu is a single entry point for day-to-day moderation. Type /admin (or amx_csbmenu) and you get a paginated menu built with the AMX Mod X menus API: pick a player, pick an action, done. Every item is checked against the caller's access flags with get_user_flags() before it runs, and every action is written to the AMXX log with the admin's SteamID, so you can always answer "who slayed me?".

This is an independent GPL re-implementation inspired by the classic Admin Commands / amxmodmenu plugin shipped with AMX Mod X by the AMX Mod X Development Team. None of their source is reused — the credit is here because the idea is theirs.

Features

  • Player menu with kick, ban, slay, slap, move to T and move to CT.
  • Map menu built from mapcycle.txt, filtered through is_map_valid() so a typo cannot crash the server.
  • CVar menu that cycles mp_friendlyfire, mp_freezetime, mp_roundtime, sv_gravity, mp_autoteambalance and sv_alltalk through sane preset values and shows the current one inline.
  • Instant team swap plus round restart.
  • Per-item flag checks: ADMIN_KICK, ADMIN_BAN, ADMIN_SLAY, ADMIN_MAP, ADMIN_CVAR, ADMIN_LEVEL_A.
  • ADMIN_IMMUNITY targets are refused.
  • Coloured chat announcement and an log_amx() audit line for every action.

Installation

  1. Compile csb_admin_menu.sma (or download the ready .amxx).
  2. Copy it to addons/amxmodx/plugins/.
  3. Add csb_admin_menu.amxx to addons/amxmodx/configs/plugins.ini.
  4. Change the map or restart the server.

Notes

Bans go through the engine's banid + writeid, which stores them in listip.cfg/banned.cfg. If you want SteamID bans in MySQL with reasons and expiry dates, run CSB Ban Manager next to it.

Instalacja
1. Put csb_admin_menu.amxx in addons/amxmodx/plugins/
2. Add csb_admin_menu.amxx to addons/amxmodx/configs/plugins.ini
3. Change map
4. The map menu reads mapcycle.txt from the game directory (cstrike/mapcycle.txt).
Cvary3
CVARDefaultDescription
csb_adminmenu_enabled1Enable or disable the menu.
csb_adminmenu_bantime30Minutes used by the menu's Ban item (0 would be permanent).
csb_adminmenu_slapdmg5Damage dealt by the menu's Slap item.
Komendy2
CommandAccessDescription
amx_csbmenuu (ADMIN_MENU)Opens the CSB admin menu.
say /adminu (ADMIN_MENU)Same menu from chat.
Ocena
Brak ocen