Page 1 of 1

Ban Disconnected Player Menu

Posted: Sun Nov 21, 2021 11:41 pm
by greenie
Ban Disconnected Player Menu v2.0.1

Description

Displays a menu that allows admins to ban recently disconnected players.

Commands
banmenu_show - displays ban menu
discon_list - prints current disconnected list in console
Notes
Uses the amx_show_activity cvar like amxmodmenu.
Stores all players who have disconnected during the current and previous map.
The first item in the menu is used to change the duration of the ban.
To save on processing time, not all duplicate menu items are removed. All duplicate menu items will still work the same no matter which one is selected.
If the list becomes full, the least recent disconnections are removed.
The Back, More, and Exit items are always mapped to the 8, 9, and 0 keys respectivly. The menu is padded with blank items which are ignored when selected.
To add to amxmodmenu, just add the line to the custommenuitems.cfg:
amx_addmenuitem "Ban Disconnected" "banmenu_show" "d" "Ban Disconnected Menu"

get plugin
get source