Raised This Month: $51 Target: $400
 12% 

AMX CVAR Guard


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Hawk552 (427)
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 04-10-2007 , 02:16   AMX CVAR Guard
Reply With Quote #1

AMX CVAR GUARD
by Wilson [29th ID]

DESCRIPTION
Executes commands listed in an ini file on every incoming client upon
their connection to the server, and optionally can prevent the client
from changing the command to anything else.

WARNING
If the "lock" option is enabled, so that clients cannot set the commands
to anything else, the client will have to exit their game before they
can set it to anything else. No permanent effects, but sometimes people
get confused.

NOTE
Blocking commands only works for client CVARs, which are "settings".
See cvarguard.ini for examples of these cvars.

USAGE
Place cvarguard.ini in amxmodx/configs directory.
Follow instructions in that file for adding commands.
Use the below CVARs to enable this plugin in your server.

amx_cvarguard <1/0>
Enables or Disables the plugin

amx_cvarguard_lock <1/0>
Enables or Disables the "lock" feature, preventing clients from
changing commands to anything else

NOTE: This is not another "looping client_cmd" plugin. This uses a way to redefine client cvars so that the setting they control cannot be changed.
Attached Files
File Type: sma Get Plugin or Get Source (amx_cvarguard.sma - 8823 views - 3.7 KB)
File Type: zip config.zip (615 Bytes, 5867 views)
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-10-2007 , 02:23   Re: AMX CVAR Guard
Reply With Quote #2

Cool! but this? http://forums.alliedmods.net/showthread.php?p=393427 (client cvar checker) ! anyway Gj!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Dark Killer
Senior Member
Join Date: May 2005
Location: Kowloon, Hong Kong
Old 04-10-2007 , 02:40   Re: AMX CVAR Guard
Reply With Quote #3

Gj! +karma
__________________
Dark Killer is offline
Morpheus
Senior Member
Join Date: Mar 2004
Old 04-10-2007 , 06:22   Re: AMX CVAR Guard
Reply With Quote #4

Isnt it the same as what HLGUARD does?
__________________
Staffmember @ The Z Project.org
www.thezproject.org
Morpheus is offline
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kyiv
Old 04-10-2007 , 06:56   Re: AMX CVAR Guard
Reply With Quote #5

it is possible to do kick players at which does not coincide values?
hasta is offline
Send a message via ICQ to hasta
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 04-10-2007 , 14:09   Re: AMX CVAR Guard
Reply With Quote #6

This is a really nice plugin. And yes it's basically the same HLGUARD does, but now you can force cvars without HLGUARD. Nice job definately +karma!
__________________
anssik is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 04-10-2007 , 16:44   Re: AMX CVAR Guard
Reply With Quote #7

Like I said, it doesn't loop and check cvars every so often - it sets them and blocks them from being set otherwise. Better method apart form the "disclaimer" above
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Morpheus
Senior Member
Join Date: Mar 2004
Old 04-11-2007 , 05:56   Re: AMX CVAR Guard
Reply With Quote #8

Ok thanks for the info !
__________________
Staffmember @ The Z Project.org
www.thezproject.org
Morpheus is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 04-11-2007 , 09:22   Re: AMX CVAR Guard
Reply With Quote #9

BTW I think using the alias command to block cmds doesn't work with all commands.
At least these doesn't seem to work:
violence_ commands
developer command
__________________
anssik is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 04-11-2007 , 17:46   Re: AMX CVAR Guard
Reply With Quote #10

Quote:
Originally Posted by anssik View Post
BTW I think using the alias command to block cmds doesn't work with all commands.
At least these doesn't seem to work:
violence_ commands
developer command
There are scripts and such that can get around alias and redefine aliases so this isn't full proof anyhow--and without a check to see if they have been changed if someone does get around the alias method then the plugin does nothing to notify Admin since it isn't checking them every so often anyhow.
SubStream is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode