Client Checker (1.0.1) [Update 02-25-2007] SQL Support
4 Attachment(s)
What does it do?
It can check client rates It can check client CVARS which can be configured in a config file It can show a (dis)connect message from clients (possibility to show from which country the player connects) It can kick players with high ping (Used / Modified the HPK code) CVARS:
cvar { max_value - Use this for numeric values only min_value - Use this for numeric values only set_value - Value that will replace the invalid value (when using '*' as value it will set to the avg of the min and max value) equal_to - Value can not be equal to this, if it is change it to the set_value !equal_to - Value must be equal to this, if not change it to the set_value contains - Value contains this. Change value to set_value (use comma to use spererate values) !contains - Value does not contain this. Change value to set_value (use comma to use spererate values) regex - Use a regex pattern (http://www.troubleshooters.com/codec...rl/perlreg.htm } Examples: gl_polyoffset { max_value 4 set_value 4 } max_smokepuffs { min_value 120 set_value 120 } name { contains fuck,shit,cunt set_value BANNED_NAME } SQL: The sql.txt file contains the database structure. The SQL stuff currently only saves the steamids in the database. Requirements: This plugin requires amxmodx 1.7 or later to work! Change log: 1.0.1: - Changed the CVAR checker config (it will still read its old config) - Agree save is now using nvault to store steamid's. And it will remove entries older than 14 days by default (only if the SQL version is not used). 1.0.0: - Added SQL support 0.0.9: - Bugfix: Always showing agreement menu even while steamid was in saved list! - Did some optimization 0.0.8 Optimized: - Optimized the code - Added option to show the info in console when client joins the server (cc_showinfo) 0.0.8: - Bugfix: now using get_players instead of get_playersnum so all messages should be working now. 0.0.7: - Changed the maximum save value to 512 (this is defined in the source code and can be changed to use a low or higher number) - Added quick cvar check when a client joins the server. - Added option to auto kick clients that keep changing there settings to an invalid value. (The number of invalid changes can be set in the config. And will only start after the first check). - Added option to automaticly write admin changes to the config file. 0.0.6: - Added option to show a agreement menu before the client checker starts. If the user doesnt agree he/she will be removed from the server. - Added option to keep a little save file of the users who agreed (up to 64 records) - Added a limit to maximum cvar checks in one check cycle. This is to prevent flooding with big cvar check lists. The maximum items to check can be set with "cc_maxitems". 0.0.5: - Small bug fix with geoip when a bot joins the server. Also added some code to check if the country isnt matching error. 0.0.4: - Fixed the cc_showgeoip cvar (it did not check if it was en/dis-abled) - Added messages for High ping kick - Added pcvars to make it faster 0.0.3: - Fixed bug in Cvar checker - Code revision (cleaned up some of the mess) 0.0.2: Public version 0.0.1: Private test version Old versions: The old versions can be found here: http://crazed.swamo.com/ClientChecker If you download this plugin please leave some feedback! Note: The zip file includes the config files and this page as readme! |
Re: Client Checker
n1 this plugin will be very usefull .
Are you sure this plugin isnt made yet? |
Re: Client Checker
Quote:
|
Re: Client Checker
Some of your code is very repeticious..
ex: in cc_messagetype, you use this like 3 times when you can simply put it above all three if() statements.. PHP Code:
PHP Code:
|
Re: Client Checker
hmm I was already looking for that switch stuff but didnt find it in the functions on the AMX doc. So wasnt sure if I could use it. thx anyway :) will update it right now
|
Re: Client Checker
You don't need
Code:
switch can and will only look for cases you specify. And if you were to use 0 for type, it will most likely be for the off/disable/etc option, so case 0 can be omitted completely. |
Re: [Update] Client Checker
Had a bug while loading the chk_cvars.cfg file. This was because I first didnt had any comments in that file added this later and forgot to update the old code properly.
Old code: PHP Code:
PHP Code:
|
Re: [Update] Client Checker
Certain CVARS should not be enforced on all clients because some will affect others differently.
If a person wants to enforce CVARS via config file, the client should have the option to accept such changes or decline them as in EKS's CVAR Checker. This allows server owners to choose CVARS and use a config file, but prevents abuse of players by making the changes on them optional. If the purpose of the CVARS is to even the playing field, and the person wants to force settings upon players, then they should use Force CAL Open Settings [fcos]. This plugin has the option to force players to only play with settings enforced in the CAL Open league. These settings are known by everyone who plays Counter-Strike to be fair and do not affect players negatively. In my personal opinion, forcing any CVARS other than those known for a fact to be fair is not wise. It may result negatively. Either way, these two plugins take care of CVARs concerning clients. As for high ping, Easy to use High Ping Kicker does the job. I'm not trying to bash this, but the idea of an all encompassing, forcible CVAR plugin is not new and in my opinion leads to admin abuse. FCOS keeps the playing field level via 79 known tried and true CVAR enforcements--which are 100% reliable, and EKS's CVAR checker can take care of anything else a person wants. That's just my personal opinion anyhow. |
Re: [Update] Client Checker
Well SubStream you got a point with that. But if you rly want to keep your old config you have to set it to read only anyway .. or add all the changes to userconfig.cfg and I think most people already got this.
|
Re: [Update] Client Checker
Quote:
|
All times are GMT -4. The time now is 13:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.