Changelog
Current version: v4.2
--------------------------------------------------------------
Changelog for Plugin Amxbans changes/fixes by lantz69 after version 4.0 by YoMama
--------------------------------------------------------------
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 Friday 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 Sunday 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.
TODO (Plugin)
* Make the rest of the strings to use the Multilanguage system
##########
------------------------------------------------------------
Changelog for Amxbans Web Interface 4.2 changes/fixes by lantz69 after version 4.0 by YoMama/Lux
------------------------------------------------------------
4.2 Thursday October 13, 2005
- New options in setup.php and in cfg.php
1. Display admin nick for public users on front-page?
2. Should public users be able to use search?
3. Hours between webserver and game server. This is useful if your webserver and gameserver is located in diffrent timezones.(
Suggested by QuakerOates)
- Reason for ban is shown on all pages if that is enabled in the settings.
- Changed the dropdown menu to have an extra option "Home"
- Now you can leave password blank in the setup if you like/must.
- Fixed an issue on win32 servers when getting the auto setting of path in setup.php
This should not be an issue on linux/apache servers
- The folder "tmp" is in the package by default now. Some users got confused when that folder didn't exist
- Live ban now works after the steamUpdate in august
- Updated the geoip.dat
- You are now able to edit expired bans.
TODO (Web Interface)
* Add the possibility to add links to demo files recorded on the player that is banned.
* Add fancy layers for search results
##########
FAQ for the Amxbans plugin
Q: Some of my admins can't ban permanent and don't get the same bantimes in the menu as other admins. Why is it like that?
A: There are two ways of solving this.(
Only use one of them!)
First solution. Give all you admins the d-flag and the extra n-flag. Then they will be able to ban all they want and they will also get the higher ban values.
OR
Second solution. Change the define at line 75 in the file amxbans_4.2.sma
Code:
#define HIGHER_BAN_TIME_ADMIN ADMIN_LEVEL_B
To
Code:
#define HIGHER_BAN_TIME_ADMIN ADMIN_BAN
Compile the .sma and copy the .amxx file to the plugins folder.
Now all your admins with the d-flag can ban all they want and they will also get the higher ban values.
Q: How can I change the bantimes in the menu?
A: Change the define at line 79 and/or 83 in the file amxbans_4.2.sma
Code:
new g_LowBanMenuValues[4] = {5, 60, 240, 600} // The numbers are in minutes
new g_HighBanMenuValues[4] = {5, 60, 6000, 0} // The numbers are in minutes.. 0 = PERMANENT BAN
Note. You can only have four ban time values. If you want more values you need to edit the plugin in many places.
Only use more than four if you know what you are doing.
Compile the .sma and copy the .amxx file to the plugins folder.
-------------------------------------------------
FAQ for the Amxbans web Interface
Q: Why don't add live ban work??
A: It works but you have not set it up right
It can be that you have your game server and webserver on diffrent ip
You must add in server.cfg
ip xxx.xxx.xxx.xxx // Use Internet ip and not local ip
exec your server.cfg in server console or restart server or just do a mapchange
You must also add rcon_password in the amxbans web interface.
Choose servers in the drop down menu.
Click on the edit button
Now you can add you rcon_password.
Now your live ban should work.
Q: How do I add resons to the data base which will show in the menu?
A: You need to log into Amxbans web Interface and the choose Servers in the dropdown menu.
In the new page you see a button "Reasons" click on it
Now you can add reasons for that server.
You have to add reasons for each server.
Q: I get a lot of warnings in the webpages. How can I get rid of them. I cant edit php.ini b/c i rent my webserver.
A: Create a .htaccess file in your webroot (
http://yourdomain.com/HERE) with this content
Code:
php_flag register_globals on
php_flag display_errors off
If you are able to edit your php.ini look for this:
Code:
error_reporting = E_ALL
change to
Code:
error_reporting = E_WARNING ;E_ALL
###############
Credits
YoMama of cource for creating this plugin in the first place.
Brad Jones for making the bantime to show weeks, days, hours, minutes and seconds in the ban
Pendragon for helping out and betatesting
__________________