AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Ultimate Bans v1.9 [12 Jan 2014] (https://forums.alliedmods.net/showthread.php?t=227904)

souvikdas95 10-10-2013 12:36

Ultimate Bans v1.9 [12 Jan 2014]
 
4 Attachment(s)
[IMG]http://s16.************/of34sb4bp/UBFUL.png[/IMG]

Latest Update : 12 January, 2014 ( Click HERE to see update process of version 2.0 )

Changes :
  1. Fixed : Another Bug with Voteban Menu fixed.
  2. Changed BAN Command Syntax for Compatibility with Other Plugins. Changed Parameter Order. See Commands Section.
  3. Now shows the Name of the Server where the Player is Banned in Console

Modules :
  • Regex
Features :
  • STEAMID Bans
  • IP + RANGE Bans
  • NAME Bans
  • Ban Query
  • Heuristic Mode
  • Support for Multiple Bans [ Player(s) with Same IP/STEAMID ]
  • Full Command Support for Console/RCON Banning
  • Advanced Time Management
  • Variable Flags for Immunity
  • Ban, Unban, Voteban Menus Integrated
  • Automatically Deletes Fake Ban Entries
  • Thorough Synchronization with BanList file
  • Supports WildCard in Commands
  • SQL Support ( Coming Soon )

Console/RCON/Admin Commands :
  1. amx_ban <nick, #userid, authid, ip> <minutes> [reason] <bantype>
    • <nick, #userid, authid, ip> --> This defined the Information of Target, available with Banner. Note - This doesn't define Ban Type. It is only to locate the Player(s). For Range Ban, Use X.X.X.0 or X.X.0.0 or X.0.0.0 where 0 denotes the entire Range of 255 IPs'.
    • <minutes> --> This defines Duration of Ban. This can take both Integral and Decimal Values. Values Greater than 8-digit Integral Part is automatically forced to Permanent Ban ( 0 or 0.0 )
    • [reason] (optional) --> This defines the Reason for which Banning is done. Default : (<null>).
    • <bantype> (optional) [ Note - Needs "Reason" Parameter to be Filled ]--> This defines the BanType. Only 4 BanTypes are Possible : STEAMID , IP , NAME , AUTO. Other than these, any other INPUT will result in an Error. Default : ("AUTO").
      • STEAMID - As name suggests, this bans by SteamID
      • IP - As name suggests, this bans by IP Address
      • NAME - As name suggests, this bans by NAME. ( Case Sensitive ) Note - If a player named "asd123 a s d" is Banned, even player named "asd123 a s d Bazzinga!!" is Banned. Useful for banning multiple players at the same time.
      • AUTO - Either SteamID or IP Address will be Banned based on Offline ( LAN where by Default SteamID = "VALVE_ID_LAN". So, BAN by DHCP IP is the only mode ) and Online ( Internet ) Server
  2. amx_addban <nick, authid, ip> <minutes> [reason] <bantype> ( Similar to "amx_ban" but also Supports Offline Bans and IP Range Bans )
    • Advantage - You can use Range Ban OR Provided a sitation where, You are about to Leave the Server, a Player you wanted to ban has just left the Server, and you have the Required Information of him ( You can also use "amx_last" command to get his Information ). Note - Here BanType directly Corresponds to Target Information unlike "amx_ban".
    • Disadvantage - The Mechanism may become lengthy when you type in the information of a player who's already connected to the Server. This Command is very SENSITIVE and only for EMERGENCY USE.
  3. amx_unban <nick, authid, ip> <bantype>
    • This is used to Unban Player
  4. amx_queryban <nick, authid, ip> <bantype>
    • This will search the banlist for any similar entry. if bantype is mentioned, then it will search in corresponding bantypes only else it will search anywhere in the list and show the results.
    • Related Commands ( "amx_queryban" should be executed atleast once after which Console must print INFO about these Commands. ) :
      • amx_querynext - To go to Next Page of Search.
      • amx_queryback - To Return to Previous Page of Search.
  5. amx_banlist <start from entry no.>
    • Shows the List of Banned Players with a max. of 5 at a Time. Default Parameter = '0'. Any other number would show the corresponding ban entry and the next 4 entires following it in order.
  6. amx_reloadbans ( Only Console/RCON Command i.e. NOT FOR ADMINS )
    • Reloads all Bans from BANLIST file
  7. amx_resetbans ( Only Console/RCON Command i.e. NOT FOR ADMINS )
    • Deletes all Bans from BANLIST file

Player Commands :
  • /voteban - Shows a Menu for Voteban provided CVAR "ub_vote_enable" is set to "1"

CVARs :
  1. ub_contact ""
    • Contact info to be displayed to the banned player in case he wants to get unbanned and wants to file a request ( Default - "N/A" i.e. won't be displayed )
  2. ub_flags ""
    • Players with these Flags are Immuned ( can't be banned ). For Multiple Flags, Write them like "abdfgt". ( Default - "a" )
    • Go to Access Levels for Information on Flags.
  3. ub_checkinterval ""
    • This will check for unban after specified amount of time. Takes value in seconds. Any value less than 1.0 will disable the function. This is optional because an alternative has already been added which will check for unban while a player connects. This should be used just to remain updated with the bans. ( Default - "60.0" )
  4. ub_vote_enable ""
    • Toggles Voteban Menu ( Default - "1" i.e. Enabled )
  5. ub_vote_ratio ""
    • Percentage Ratio Votes of Connected Players required to Ban a Player ( Default - "0.40" i.e. 40% of total connected players )
  6. ub_vote_delay ""
    • Time in Seconds after which the Player will be able to Voteban again ( Default - "5.0" )
  7. ub_vote_time ""
    • Duration in Minutes for which the Vote-Banned Player will be Banned ( Default - "60.0" )
  8. ub_vote_min ""
    • Minimum Players required for Voteban to function ( Default - "5" )

Installation Instructions :
  1. Put "UltimateBans.amxx" and Replace "menufront.amxx" and "adminvote.amxx" in [ amxmodx/plugins/ ].
  2. Put "menufront.txt" in [ amxmodx/data/lang/ ].
  3. Write "UltimateBans.amxx" at the TOP of [ amxmodx/configs/plugins.ini ] (above all plugins including default plugins of amxmodx).

Other Files : (Automatically Generated)
  1. "addons\amxmodx\data\UB_Banlist.txt" - BANLIST file (loaded at change of map/ start of server / restart of server - can be loaded manually by "ub_reloadbans" command from server console only. format : "<bantype>" "<target_authid>" "<target_ip>" "<target_name>" "<bantime>" "<unbantime>" "<banner_id>" "<banner_ip>" "<banner_name>" "
  2. "addons\amxmodx\logs\UB_Logs.txt" - LOG file to log every ban/unban/addban data of each player

Screenshots :

[IMG]http://s2.************/qao7x66o9/amxmodmenu.jpg[/IMG] [IMG]http://s2.************/ivyw4sksp/banmenu.jpg[/IMG] [IMG]http://s2.************/kdkcgcpjd/unbanmenu.jpg[/IMG] [IMG]http://s2.************/uz47scvux/votebanmenu.jpg[/IMG]

Credits :
  • claudiuhks ( for native information and syntax support )
  • Drekes ( for menu support )
  • Noor Sarao ( for Banner/Logo of Ultimate Bans )

Stress Test Result :
Handles more than 2000 Ban Entries Without Causing Lag

Servers using this Plugin : Gametracker

Download :

DWIGHTpN 10-10-2013 14:00

Re: Ultimate Bans v1.0 [Alpha Test]
 
You must attach the SMA file .

souvikdas95 10-10-2013 14:27

Re: Ultimate Bans v1.0 [Alpha Test]
 
it's right there... see the attachments

Jhob94 10-10-2013 17:56

Re: Ultimate Bans v1.0 [Alpha Test]
 
Advanced bans has all this features if iam not wrong

souvikdas95 10-11-2013 00:10

Re: Ultimate Bans v1.0 [Alpha Test]
 
actually 50% you can say it's similar to advanced bans but the rest is contributed to some very needy bug fixes and features that it lacked. anyways this is meant for only developer check right now. so you need to go through the source code first and see the changes.

souvikdas95 10-11-2013 01:29

Re: Ultimate Bans v1.0 [Alpha Test]
 
actually it's quite similar to advanced bans but it's much upgraded and robust with a lot of new and needy functions.
1. custom bantypes - it's useful when u need to ban a player specifically by a bantype. eg. when u want to ban a steamer by ip/name. it's also useful when players put steamids/ips in their names and simply writing their name wouldn't be enough to ban them. instead if another players exists with same steamid/ip
2. better parsing of input. eg. in advanced bans when u enter steamid without quotes, it will not detect.
eg. when a player joins the server failing to authenticate, server console and client console would clash in advanced bans in such a way that server command "amx_ban" would start to malfunction
3. queryban function to search a ban entry when too many entries exist
4. ban filtering

Mistrick 10-11-2013 01:45

Re: Ultimate Bans v1.0 [Alpha Test]
 
What about sql support?

souvikdas95 10-11-2013 03:34

Re: Ultimate Bans v1.0 [Alpha Test]
 
not yet... it can be converted into sql very easily... first of all i would fix the output bugs and then work on input procedure...

Filcora 10-11-2013 12:39

Re: Ultimate Bans v1.0 [Alpha Test]
 
STEAM_0: 4:123456

SteamID is correct, in your plugin will be considered as false

See yourself: https://developer.valvesoftware.com/wiki/SteamID

YamiKaitou 10-11-2013 22:44

Re: Ultimate Bans v1.0 [Alpha Test]
 
Quote:

Originally Posted by Filcora (Post 2047661)
STEAM_0: 4:123456

SteamID is correct, in your plugin will be considered as false

See yourself: https://developer.valvesoftware.com/wiki/SteamID

That is not a valid SteamID of a user. A user will only ever get 0 or 1 as the second number

STEAM_X:Y:Z
X is only 0 in GoldSrc (0 or 1 in Source, depends on the game)
Y is only 0 or 1
Z is a number up to (currently) 8 digits


All times are GMT -4. The time now is 02:08.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.