Client Cvar Rules
1 Attachment(s)
Hello.
Today I'd like to release a plugin which I've written a long time ago in order to test the "query client cvar value" functionality of newer AMX Mod X versions. As the name says, the plugin lets you specify rules for client cvars. NOTE: Requires AMXx >= 1.56 (1.60 will work, as it says >=). Also, your server has to be up-to-date (have Valve's august-engine-update), otherwise you'll probably get either a lot of runtime errors or crashes. The plugin registers one server command: amx_cvarrules. USAGE Every command also has a shorter alias (? for list, + for add, - for del) Code:
amx_cvarrules listCode:
amx_cvarrules add RULECode:
amx_cvarrules del RULE IDCode:
amx_cvarrules del CVARamx_cvarrules add accepts the rule definition in an interesting format. Code:
amx_cvarrules add CVAR OPERATOR COMPARE_VALUE more stuffCode:
amx_cvarrules add ex_interp !f 0.1If the user is found with a value different than 0.1, set it to 0.1 for him, and log it to the server logs. If it happens again on that user, log it again and kick him. You can specify after how many "failed queries" logging/kicking/"shouting" should occur: Code:
amx_cvarrules add ex_interp !f 0.1 shout1 log1 kick3There's also an other interesting flag: Code:
amx_cvarrules add ex_interp !f 0.1 disThere are more operators. Code:
= equal (compare as text)Setting the fallback value works like this: Code:
ex_interp =f 0.05 @ 0.1Disabling the fallback value works like this: Code:
ex_interp !f !By the way, note that amx_cvarrules add checks for duplicates of the same rule, so it's safe to use it in a file like config.cfg, which may possibly be executed more than once. Well anyway, have fun. EDIT: Yes, the plugin won't compile, because the web-compiler doesn't have the latest includes yet. Download the .sma and compile it on your own. Mwahahahah!!AHAHAHAH1h1AHAhahQHqha. EDIT2: BAIL has phixed the web-compiler. |
cool nice job
good plugin |
This is really quite powerful :o very nice
|
What is the differens in this plugin, HLGuard have this already.
|
Quote:
Besides, you may only want to enforce a cvar and not run HLGuard. |
dosen't work with amxx 1.60 and natural-selection. about 10 or 20 seconds after map/roundstat the server crashes. testet on ns 3.05 linux and win32 too.
|
very nice plugin! good job!
8) could you add the feature, to show the client which values are allowed in his "kicked ... " notice ? |
Nice plugin like allways PM
|
This plugin is outstanding, thanks PM
|
If I change a cvar in game, the new value is not detected, and i can contune playing with a value that my rules should detect and fix. It works fine when i connect initialy, it detects and forces a normal value, but 10 mins into the game, i can change and go undetected.
Code:
amx_cvarrules add ex_interp !f 0.1 shout1 log1 kick3 |
| All times are GMT -4. The time now is 07:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.