CSB Punish Menu v1.0.0
CSB Punish Menu puts every routine punishment behind a single menu. Type /punish (or amx_punish), pick a player, pick an action — slap, slay, freeze/unfreeze, gag/ungag, kick or ban — and for the serious ones pick a reason from a list loaded from csb_punish_reasons.ini. Every action is announced in coloured chat and written to the AMXX log.
How it works
The menu is built with the AMX Mod X menus API. Slap and slay use the fun module; freeze toggles the FL_FROZEN flag through fakemeta and auto-releases after csb_punish_freezetime seconds; gag blocks say/say_team in a client_command hook; kick and ban go through the engine's kick and banid+writeid. Consistent reasons come from the editable ini, so different admins log the same wording.
Features
- Slap, slay, freeze/unfreeze, gag/ungag, kick and ban from one menu.
- Reason sub-menu for gag/kick/ban, loaded from
csb_punish_reasons.ini. - Timed auto-unfreeze and a preset ban length (
csb_punish_bantime). ADMIN_IMMUNITYtargets are refused; every action is logged.
Installation
- Compile and copy
csb_punish_menu.amxxintoaddons/amxmodx/plugins/. - Copy
csb_punish_reasons.iniintoaddons/amxmodx/configs/and edit it. - Add the plugin to
plugins.iniand change the map.
Installation
1. Put csb_punish_menu.amxx in addons/amxmodx/plugins/ and add it to plugins.ini 2. Copy csb_punish_reasons.ini into addons/amxmodx/configs/ 3. Change map
Cvars4
| CVAR | Default | Description |
|---|---|---|
csb_punish_enabled | 1 | Enable or disable the punish menu. |
csb_punish_slapdmg | 5 | Damage dealt by the Slap action. |
csb_punish_bantime | 30 | Ban length in minutes for the Ban action. |
csb_punish_freezetime | 5.0 | Auto-unfreeze delay in seconds (0 = manual). |
Befehle2
| Command | Access | Description |
|---|---|---|
amx_punish | c (ADMIN_KICK) | Opens the CSB punish menu. |
say /punish | c (ADMIN_KICK) | Same menu from chat. |
Bewertung
Noch keine Bewertungen









