Wednesday, January 29

Advanced Bans (ScreenShot | RangeBan) [Modification]

A must have modification of the original Advanced Bans (Real Time) plugin by Exolent. This AMX Mod X plugin modification contains ScreenShot Ban and RangeBan feature with rest all features just like the good old Advanced Bans!
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 also includes a list of who is banned and many other features. Visit the original authors link at the bottom of the page for more details and other required files.

Using this plugin whenever you ban any player who is connected to the server, a certain information is printed on the players screen (check screenshot). The screenshot is stored in the cstrike folder of the player's CS just before he gets banned from your server. You can request that player to send the screenshot for verification before the remove the ban on that user.
One more additional feature is RangeBan which allows you to ban a specific IP range. (I know you might think that rcon addip does the same job, but if you use this plugin you can print ban information on the players' console when he tries to connect. Useful in case you have noob players who just keep shouting about them being banned for no reason.)

CHANGES

  • Added Ban Shot / Screen Shot support.
  • Added Range Ban support.

INSTALLATION
  • Copy advanced_bans.amxx to addons\amxmodx\plugins folder and replace the original file.
  • Restart server or change map for changes to take effect.
    Note: Please make sure you have the original plugin installed properly. This is just a modification of the original plugin


CVARS
  • ab_screenshot 0/1
    Desc - Disables or Enables the Ban shot method of ban. If set to 1, will print some ban information of the players screen and will take a screenshot of it. Players can then send that info back to your in case they want to get unbanned.
     
  • ab_prefix "[Advanced Bans]"
    Desc - Prefix / Server Tag to be used in front of colored chat and console messages. Add to amxx.cfg. Will reflect after map change.
COMMANDS


  • amx_rangeban <playername> <range| 1/2/3/4> <minutes> <reason>
    Desc
    • Range 1 = 192.168.1.0 - 255 IPS
    • Range 2 = 192.168.0.0 - 255x255 = 65025 IPS
    • Range 3 = 192.0.0.0 - 255x255x255 = 16581375 IPS
    • Range 4 = 0.0.0.0 - Just shut down your bloody server if you want to ban everyone!
       
  • You can also use amx_addban command for a manual IP range ban, in case the player is not connected and you know his IP.
    Desc - amx_addban <name> <authid or ip> <time in minutes> <reason>
    • amx_addban "Hacker" "192.168.1.0" 60 "IP Range Banned"
    • amx_addban "Hacker" "192.168.0.0" 60 "IP Range Banned"
    • amx_addban "Hacker" "192.0.0.0" 60 "IP Range Banned"


Servers Using This Plugin

Note : If you get any problems with this plugin or find out any bugs in it, please use this page to report them back to me so that I can fix them.
Reminder: Again, this is not the complete plugin. This is just a modification. Install the original plugin and then replace the above file.

Orginal plugin (External Link)
Author - Exolent
Plugin credits to the original author.
Modification credits to ~UN!CORN~ (Me)

24 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. As far as I recall amx_rangeban is a console command with default access set to ADMIN_BAN. You can edit addons/amxmodx/configs/cmdaccess.ini and change that commands' flag according to your need.
    Additionally you can also add/use amx_addbanlimit < FLAG > < MAX TIME IN MINUTES > command in your amxx.cfg to restrict max ban time for admins with specific flags.

    ReplyDelete
  3. well Shaliwahan bhai
    steam prefix is having issue :3
    can ban Steam_0 but not steam_4
    any soln for dat ?
    dproto is patch ...

    ReplyDelete
    Replies
    1. Well actually as per Valve corp. 0_4 is not a valid AuthID, so I did not change it. I'll make the changes now, you can re-download it again.

      Delete
  4. also one more req...
    can u add option to ban by ipaddress or p48 id
    If a player is having steam_4 ID we have to addban dat id...
    so can we have a way dat we could choose to ban via p48 ID ????

    ReplyDelete
    Replies
    1. Read my above comment. Its already been added. Re-download the plugin.
      And for IP ban you can use amx_banip command.

      Delete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Hey bro colored chat and console mai messages nai dikha raha. Only kick or banned by console aa raha hai. why ??

    ReplyDelete
  7. Its not the part of this plugin. You can easily change those times from your amxx.cfg.
    Make it something
    amx_plmenu_bantimes 5 60 360 2880 10080 0
    First option will always be default selected -
    amx_plmenu_bantimes 2880 5 60 360 2880 10080 0

    ReplyDelete
  8. Nope. Not really. People hardly use SQL, and as the rest of the plugin is stable there was no need for an update.

    ReplyDelete
  9. Hey a small help. I want the ban info to be like this :

    [-= } D|A { =- Bans] -------------------------------
    [-= } D|A { =- Bans] --==|| BAN INFO ||==--
    [-= } D|A { =- Bans] -------------------------------
    [-= } D|A { =- Bans] Server - dFuZe || Deadly Assassins Pub ||Classic||
    [-= } D|A { =- Bans] BanType - IP
    [-= } D|A { =- Bans] TargetID - STEAM_ID_LAN
    [-= } D|A { =- Bans] TargetIP - 101.0.32.225
    [-= } D|A { =- Bans] TargetName - 183.87.110.21 : 27019 go here !
    [-= } D|A { =- Bans] BanTime - 16 : 03 01/12/2014
    [-= } D|A { =- Bans] UnbanTime - Never ( Permanent Ban )
    [-= } D|A { =- Bans] BannerID - STEAM_0 : 1 : 91051349
    [-= } D|A { =- Bans] BannerIP - 59.178.178.27
    [-= } D|A { =- Bans] BannerName - Pagal Kejri
    [-= } D|A { =- Bans] Reason - Go forever : D
    [-= } D|A { =- Bans] -------------------------------
    [-= } D|A { =- Bans] For Unban Request , Go to : Report unfair bans over here->> https://www.facebook.com/groups/deadlyasassins/
    [-= } D|A { =- Bans] ----------------



    Please reply soon. Thanks

    ReplyDelete
    Replies
    1. The plugin make is mine but the server is not. I do not process unban requests. Contact the server owner / admin on their facebook group. I cannot help in this case.

      Delete
    2. He did not post unban request. He just want to design his ban information like given pattern. Read the 2nd line he mentioned "I want the ban info to be like this" :)

      Delete
    3. Oh sorry! My bad...
      In that case he just has to edit the lang file as per his needs.

      Delete
  10. i don't know if you still do coding but i just wanted to ask if you can make the cvar ab_website show on the screen shot for example

    http://i.imgur.com/isomPR8.png

    ReplyDelete
  11. I code, but not AMXX anymore. Your request could have been easy, but I don't have the source code for the plugin anymore.
    The most simple solution would be to try editing the language file (advanced_bans.txt).

    If possible I will look for the source code later tonight and update the plugin if I do get it.

    ReplyDelete
    Replies
    1. oh thank you i just saw that you wrote no problem its not a big deal people can still se the website in the console so if you find the source ok if not still fine ty :)

      Delete
  12. How can i ban VALVE ids also because people who use older versions don t get banned can you help me with that even though i see that there have been 5 years sine you posted because they get assigned valve ids beeing non steam users the plugin can t ban them properly

    ReplyDelete

Comment anything you want. Just be polite and give respect to others!
I am simply going to remove the comments which are offensive or are off topic.
And please don't spam your website links in comments. I don't, neither should you.