Raised This Month: $ Target: $400
 0% 

CVars Access System


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Hawk552 (427)
VEN
Veteran Member
Join Date: Jan 2005
Old 03-15-2007 , 09:46   CVars Access System
Reply With Quote #1

CVars Access System
Description
Plugin allow to change access level(s) for a certain server CVar(s).
Notes
  • CVars is accessed through default amx_cvar command so the admincmd.amxx plugin required.
  • Plugin must be loaded before admincmd.amxx so put it above admincmd.amxx in plugins.ini.
  • Refer to plugin_cfg section of admincmd.sma to view/edit AMXX default hardcoded RCon CVars.
  • Use for example amxmodx\configs\amxx.cfg config file to store a custom access to a CVars.

Commands
amx_cvar_access <cvar> [flag(s)] - gets/sets CVar's access, example: amx_cvar_access amx_vote_delay "j" will set ADMIN_VOTE access level for amx_vote_delay CVar, this mean that admins with a vote access will be able to view/change amx_vote_delay CVar value through amx_cvar command.
Scripting
The cvaraccess.inc file contain <get|set>_cvar_access native functions and some other functions that can be used in other plugins. See the supplied script for a usage example. Note that to simply set a CVars access alternatively you can use the amx_cvar_access command with the server_cmd() native, for example: server_cmd("amx_cvar_access my_cvar j"). This method isn't require *.inc file, native and its filtering.
Attached Files
File Type: sma Get Plugin or Get Source (cvars_access_system.sma - 2109 views - 8.8 KB)
File Type: inc cvaraccess.inc (2.2 KB, 764 views)
File Type: sma Get Plugin or Get Source (cvars_access_example.sma - 2883 views - 2.0 KB)
VEN is offline
 



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 20:10.


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