Hello to all HP-Community players.
Servers will be OFFLINE for few days we have some issues regarding our database.
Rank stats will be saved, aswell all the XP and Levels on SuperHero and CSDM+GUNXP servers will be saved.
For waiting all SuperHero and CSDM+GUNXP server players will recieve +5 more levels and VIP status.
We are working hard to FIX the issues and the server will start working again soon... Sorry for any inconvenience.

Regards,
Evaldas HP-Community Administrator.

Advanced Bans (Real Time)

In this section you will find plugins to help your server to become more better.

Moderator: MidNight Rider

Post Reply
User avatar
Admin
Community Owner
Community Owner
Posts: 37
Joined: Thu Jun 08, 2017 1:04 am
Location: United Kingdom
Gender:
Contact:

Sat Jul 08, 2017 1:06 am

Advanced Bans (Real Time)
Description
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).

Commands:
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>
amx_banlist
- 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

Requirements:
  • 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]

Download:
https://forums.alliedmods.net/showthread.php?t=80858
Image

Post Reply

Last 10 Members Who Visited This Topic

User avatar Admin (3), WilliamRib (3), User avatar MidNight Rider (1)

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest