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

Amx XCvar - Cvar Limits


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   devicenull (200)
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-04-2005 , 04:21   Amx XCvar - Cvar Limits
Reply With Quote #1

Add control to your admins. If you want to give admin's access to some cvars but not all of them. Then this is what you need.

The Cvars that you can use with amx_xcvar are read out of a file.
In amxmodx/configs/cvarlist.ini

An example cvarlist.ini is given.

Code:
/* * * * * * * * * * * * * * *  * Amx Mod X *   XCVAR *                              * Plugin is used to limit the cvars unworthy admins are able to use. * * Add/Edit %configsdir%/cvarlist.ini * 1 cvar per line * * * Example of cvarlist.ini * * mp_maxrounds * mp_timelimit * sv_gravity * etc... * ******************************************* * Created by: $uicid3 V1.2 * * v1.2 - Cleaned-up code. Made it neater and more efficient. *    - Comments now allowed in cvarlist.ini * v1.1 - Fixed Bug that if there were spaces in cvarlist.ini you would need exact spacing. *        - Now spacing in ini file doesnt mean anything as long as each cvar is on a different line. * V1.0 - First creation. * * This file is provided as is (no warranties).              * * This file is free software you can redistribute this as * you please. * ******************************************** * * Commands: * amx_xcvar <cvar> <value>      //Set cvar value * amx_xcvar <cvar>    //View cvar value * amx_xcvar ?         //View available cvars * *****************************************************/

This doesnt affect amx_cvar with limiting cvars this only has to do with amx_xcvar

I got the idea from amx_banx. But then with this if people had amx_cvar they could change the cvar for banx to whatever they wanted(this is just one of many cvars you dont want all admins to be able to screw with).

Questions/Requests/Comments/Bugs(Shouldnt be any) Post and Ill get back to you quickly.
Attached Files
File Type: sma Get Plugin or Get Source (amx_xcvar.sma - 2114 views - 2.9 KB)
File Type: zip amx_xcvar.zip (703 Bytes, 606 views)
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 06-04-2005 , 08:11  
Reply With Quote #2

this is a really good Idea
I needed something like this cause my admins screw up the server all the time with their stupid cvars
but wouldnt this limit my admin acces as well? maybe you should make it like
if you have immunity or so this plugin doesnt work on you..

thanks a bunch!

btw.. posting some examples in the .ini file might be usefull for pple who don't fully understand.. just a suggestion
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-04-2005 , 12:19  
Reply With Quote #3

Ok no this wouldnt limit your access if you still had access to amx_cvar cuz you could still use that. and ill upload some examples in the cvarlist.ini.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 07-23-2005 , 03:23  
Reply With Quote #4

Updated..
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 07-23-2005 , 06:13  
Reply With Quote #5

this plugin is great! thanx alot!!
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
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 21:08.


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