This plugin revamps the current amx_ban, amx_banip, amx_banid, amx_unban admin commands.
It uses Real Time on the server (Eg. Banned for 10 minutes, you will be unbanned 10 minutes later, regardless of map changing).
It includes a list of who is banned.
It does not use the banned.cfg or listip.cfg. It uses its own file where bans are stored.
It saves what admin banned the player (name), the admin's steamid, the reason, the ban time, the banned player's name, the banned player's steamid (or IP), and the estimated time of unban.
It will load your currently banned players from the banned.cfg and listip.cfg files. (Only if the #define at the top of the plugin is uncommented)
If you use the menu to ban players, you will have to type a reason after you choose a player.
If you use the vote system to ban players, you will have to type a reason after you execute the amx_voteban command.
You can limit the ban time for admins based on their admin flags.
You can monitor all ban history (admins banning, unbanning, and when ban times are up) in the addons/amxmodx/logs/BAN_HISTORY_MMDDYYYY.log (MM = month, DD = day, YYYY = year)
If you wish to have only 1 file for ban history, uncomment the line at the top of the .sma file and recompile.
SQL is also supported and works for multiple servers. If you use the same SQL database for more than 1 server, then those servers will share the ban list.
For SQL, the default cvars for the SQL database will be used (amx_sql_host, amx_sql_user, amx_sql_pass, amx_sql_db).
amx_ban <nick, #userid, authid> <time in minutes> <reason>
amx_banip <nick, #userid, authid> <time in minutes> <reason>
amx_addban <name> <authid or ip> <time in minutes> <reason>
amx_unban <authid or ip>
- Shows a list of who is banned
amx_addbanlimit <flags> <time in minutes>
- Adds a max ban time to the list
- Note: Use this command in the amxx.cfg
- MX Mod X version 1.8.1 or higher
- If you must use an earlier version, look at the top of the plugin:
Code: Select all
// if you must have a maximum amount of bans to be compatible with AMXX versions before 1.8.0 // change this number to your maximum amount // if you would rather have unlimited (requires AMXX 1.8.0 or higher) then set it to 0 #define MAX_BANS 0
- Modification Owner: Exolent[jNr]