/* AMXBans, managing bans for Half-Life modifications Copyright (C) 2003, 2004 Ronald Renes / Jeroen de Rover web : http://amxbans.net/ IRC : #hlm (Quakenet, nickname lantz69) IRC2 : #amxmodx (GameSurge, nickname lantz69) This file is part of AMXBans. AMXBans is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. AMXBans is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with AMXBans; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Check out readme.html for more information Current version: v5.0 -------------------------------------------------------------- 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) - Removed: replaceall func. Now using the replace_all func from amxmodx instead. - 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 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 :D - 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 - 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