2006-10-28

	--------------------------------------------------------------
	Changelog for Plugin Amxbans changes/fixes by lantz69 after version 4.0 by YoMama
	--------------------------------------------------------------

	5.0 Sat Oct 28, 2006 16:00
	- Fixed: runtime error when trying to ban admin with immunity

	4.4RC6 Wed Oct 04, 2006 18:39 
	- Changed: Cvar amxbans_max_time_gone_to_unban was changed from seconds to minutes instead. 
	- Changed: Cvar amxbans_max_time_to_show_preban was changed from seconds to days instead. 
	- Updated: The langfile amxbans.txt with all the static ban reasons. (thx Gizmo) 
	- Updated: amxbans.cfg with the new values that was changed to minutes/days. Also updated text and the order of the settings. 
	- Removed: [ru] Rushian language had to be removed in amxbans.txt because it is not in the official Amxmodx. 
	- Added: Block for multiple bans with ATAC when the player was not present in the server (rep. Scooby) 
	- Changed: Now you see 7 players/page in the menu instead of only 6. 
	- Changed: now you can have 1-12 bantimes in the menu. See amxbans.cfg (done by Gizmo) 
	- Fixed: If player has VALVE_ID_PENDING the ban will be an IP ban (LAN Servers) 
	- Changed: Banhistory Menu is now automatically loaded to the amxmodx menu
	
	4.4RC5 Mon Sep 18, 2006 16:58 
	- Fixed: The banmenu did not get enabled at once when a new server was added. 
	- Fixed: amx_list is now a server command. (rep. Mayhem) 
	- Added: Extra check for bad characters in ban_reason for sql query. 
	- Changed: Now uses the new replace_all func from amxmodx to have safe sql queries 
	- Fixed: An INSERT query for mysql 5.x servers that have Set the SQL mode to STRICT... 
	- Fixed: motd when using motdURL (ONLY LAN Servers) 
	- Added: amxbans.cfg that should be in addons/amxmodx/configs/ (thx. Gizmo) 
	- Fixed: Bantime in console must be a number and can not be text anymore. 
	- Fixed: Menu sometimes made non admins red. (thx. Gizmo) 
	
	4.4RC4 Fri Sep 08, 2006 9:12 
	- Fixed: The connection info to the sql server was set to late on mapchange. 
	
	4.4RC3 Wed Sep 06, 2006 2:33 
	- Changed: Optimized the code by removing a redundant function. 
	- Changed: Made the pruning of bans better and at the same time fixed an issue for LAN bans. 
	- Fixed: Amxbans interfered with other plugins like timeleft to not function properly (server_exec()) 
	- Added: The banned Player nick is shown to the banned player that reconnect to the server (sugg. rhino) 
	- Added: The banannounce will also print to console and not only to chat. 
	- Updated: The lang file amxbans.txt 
	- Fixed: Another mix of lang in rare circumstances 
	
	4.4RC2 Sun Sep 03, 2006 18:31 
	- Added: New cvar amxbans_show_name_evenif_mole If you have this set to 1 the showacivity system will not be overidden. 
	- Added: New compiler option ADMIN_MOLE_ACCESS to be able to choose which admin flag the admin must have to be a mole. 
	- Added: New flagsystem by Gizmo so you can mark a player being checked out. That is found in the ban menu by changing bantimes. 
	This is useful if you are recording a demo for proof and dont want another admin to ban him right away. 
	- Fixed: UnBan was broken. 
	
	4.4RC1 Sat Sep 02, 2006 10:53 
	- Fixed: language was sometimes wrong/mixed in messages in logs or to players. 
	- Changed: removed redundant functions and some debug code 
	- Changed: pcvar is now used (thx Gizmo) 
	- Added: New cvar amxbans_show_prebans_from_atac 1 // neohasses custom to not report/count expired atac bans in the amx_chat to admins 
	
	4.4b13 Sun Aug 27, 2006 14:03 
	- Fixed: Bug with prebanned showed wrong info sometimes. 
	- Added: New cvar amxbans_max_time_to_show_preban "999999999" // How many seconds must go if the ban should not count 
	This cvar is useful if you dont want to show 6 months old bans or maybe 1-2 year old bans in the bancount report to admins in amx_chat. 
	- Update: lang file amxbans.txt 
	- Changed: Optimized code (thx Gizmo) 
	
	4.4b12 Fri Aug 18, 2006 18:48 
	- Fixed: Some old unnecesary variables. 
	- Fixed: banmenu was not updated 
	- Update: lang file amxbans.txt removed old strings 
	
	4.4b11 Sun Jul 30, 2006 22:31 
	- Changed: Gizmo converted amxbans to threaded sqlX (Very big thx) 
	- Fixed: Lan bans could get same IP on all db rows sometimes. 
	- Fixed: Bancounts printed to adminis on LAN servers was wrong. 
	- Added: Added compile option #define SHOW_IN_HLSW To be able to disable the greed hud when a player is banned. 
	- Added: Added compile option #define SHOW_HUD_MESSAGES To be able to remove bans being showed as green hudmessage 
	
	4.4b10 Sat Jul 22, 2006 12:12 
	- Fixed: Multiple bantimes on the same steamID 
	- Fixed: If a ban is done by the ATAC plugin, the adminNick will be [ATAC] 
	- Fixed: Banning admin with immunity or a bot from console generated wrong output 
	
	4.4b9 Thu May 25, 2006 15:51 (CVS) 
	- Fixed: Banmenu showed wrong bantimes 
	- Added: Optional SQL connection type <Persistant|NonPersistant> Persistant is default 
	- Updated: amxbans.txt (Langfile) 
	- Fixed: SQL-fix for amxmodx 1.75 (thx teame06) 
	
	4.4b8 Sun May 21, 2006 12:26 (CVS) 
	- Changed: Static reasons is auto loaded if none is found in database 
	- Fixed: Only the reasons added in database will show in menu. No more the number and emty reason.(Prevents blank resons) 
	- Added: The banmenu will now show the bantime in weeks, days, hours instead of only minutes 
	- Added: new compiler option (g_FirstBanMenuValue) to be able to set the first ban time in the menu (in minutes) 
	- Updated: More language strings added in the langfile amxbans.txt 
	
	4.4b7 Fri May 12, 2006 12:04 (CVS) 
	- Changed: The sql connection is not persistent anymore 
	
	4.4b6 Mon Apr 24, 2006 20:16 (CVS) 
	- Added: New CVAR amxbans_show_prebanned <0|1> which show if a player has been banned before as amx_chat to admins. 
	- Added: New CVAR amxbans_show_prebanned_num <1,2,3,...> How many offences should the player have atleast to notify admins? 
	- Fixed: hudmessages was not properly translated to players 
	
	4.4b5 Fri Apr 14, 2006 13:59 (CVS) 
	- Merged sql_ban() into cmdBan() 
	- Added: New cvar amxbans_complain_url so banned players know where to complain  
	- Added: All strings are now translated (except debugmessages) 
	- Added: A green Hudmessage will show when you ban a player. 
	- Added: Normal admins (d-flag) can only unban if the ban is max 1 day old 
	This can be configured with the define in the amxbans.sma (MAX_TIME_GONE_TO_UNBAN) 
	- Updated: amxbans.txt (Languagefile) 
	- Removed: steamID pending check. But if a player has STEAM_ID_PENDING when banning his IP will be banned instead of steamID. 
	
	4.4b4 Thu Apr 13, 2006 15:34 (CVS) 
	- Changed: HLTV will be checked when connecting 
	- Added: InGame amx_unban command. Syntax: amx_unban <STEAMID> 
	- Updated: amxbans.txt (Languagefile) 
	
	4.4b3 Wed Mar 15, 2006 22:52 (CVS) 
	- Changed: AMXMODX 1.70 is now required 
	- Changed: Brads time functions is now used from the amxmodx includes instead. 
	- Updated: amxbans.txt (Languagefile) 
	
	4.4b2 Wed Mar 15, 2006 20:31 (CVS) 
	- Added: If a ban is done by ATAC or HLGUARD the adminname will be [ATAC] OR [HLGUARD] in the banlist 
	- Changed: Optimized the two ban functions to one ban function 
	
	4.4b1 Mon Nov 7, 2005 19:21 (CVS) 
	- Fixed: Baning on LAN only bans the IP and not the authid 
	- Fixed: The Ban menu now also only bans the IP if the server is on a LAN 
	- Fixed: Now you can ban using IP again (amx_ban <time> <IP> <reason>) 
	- Added: 2 More bantimes (total 6) 
	- Added: new CVAR amxbans_ban_evenif_disconnected ( default 0 ) 
	This is to be able to ban a steamID even if the player is not on the server. 


	
	4.3 Friday October 28, 2005
	- Fixed: MOTDURL in amxbans web Interface was broken in 4.2 (reported by QuakerOates)
	- Fixed: amx_find & amx_findex got an error when no result was found.(reported by QuakerOates)
	- Fixed: Better filtering of data before it goes to a mysql query.
	- Added: log_amx commands to make all sql errors write to the amxmodx/logs.
	- Changed: New method of banning players to minimize bad data to the DB.
	  You can enable the old system by commenting #define USE_NEW_BANMETHOD
	- Fixed: Removed some dbi_free_result that should not be there. (reported by Janet J)
	- Fixed: (DOD) When banning with HLSW or in server console an error would occour. (reported by [MUPPETS]Gonzo])
	- Added: A check for STEAM_ID_PENDING so they will be kicked.
	  a new cvar is added for the above amxbans_steamid_pending 1 enabled 0 disabled (default 1)
	- Added: new cvar amxbans_servernick to be able to set the admin name you want to have when the server bans with Ie. hlsw, atac or hlguard
	         this was requested by Us3r.
	         
	-------------------------------------------------------------
	4.2 Thursday October 13, 2005
	- Changed: Merged amxbans and amxbans_menu into one plugin (amxbans_4.2.sma).
	- Added: Made defines at the top of source to make it easy to change bantimes etc.
	- Changed: Rearranged the functions and changed the coding style.
	- Fixed: The get port bug is solved. Before the port always was 27015 even if the server was 27017 or another port.
	- Fixed: Some data was not written to the data base correctly when player pruned the data base himself
	- Changed: Now you get the bantime in weeks, days, hours, minutes and seconds instead of only minutes (thx Brad Jones)
	- Recomendation: Dont use the MOTDURL from the web. You should use the one in the plugin as it is more reliable and faster.
	- Fixed: amx_find now works and searches the active amx_ban table. Syntax: amx_find <steamID>. 
	- Added: amx_findex searches in the expired ban_history table. Syntax: amx_findex <steamID>.
	- Fixed: Banmenu reasons could max be 6 now it can be 7 like it should (thx DerProfi)
	- Added: The map name can be added to the servername in the ban. This is by Default disabled.
	- Added: New cvar amxbans_debug <1|0>. Use this if you want to debug false kicked players.
	- Changed: Implemented Brad Jones function to get hours,days week in HLSW chat and amxx logs (thx Brad Jones)
	- Updated: Language file amxmodx\data\lang\amxbans.txt is updated. Dont forget to update or amxbans 4.2 won't work properly
	
	--------------------------------------------------------------
	4.1 Fri Sep 23, 2005
	- Added so admins with the d-flag can ban max 600 minutes in console. 
	- Added so admins with the d-flag AND n-flag can ban whatever time they like in console and will also get higher bantimes in the menu. 
	- Fixed an issue when a string was formatted incorrectly when banning.
	- Changed the way results from the data base are handled to ged rid of memory leaks.
	- Fixed so you can compile when you want STATIC REASONS and not reasons from the DB.
		
	--------------------------------------------------------------
	4.01 Sun Sep 04, 2005
	- Fixed some result variables that where wrong and crashed the server when using amxmodx 1.50 and later versions.
	- Fixed when a recently banned player comes back after ban is expired. Now the data base gets pruned correctly.
	- Fixed so Bots don't triggers errors in the logs when connecting.
	- Changed so players recieve better info when they get kicked when they are banned.