CVAR can only be change by Certain Admins
I was wondering if there is a way to register a CVAR but be able to control what admins can change this cvar.
because I know for CMD like this below register_concmd("amx_heal", "CmdHeal", ADMIN_LEVEL_A, "<nick, #userid, authid or @team> <HP to give>"); you are able to control the Admin Level. But what about for CVARS I want admins to have Immunity and Cvar access in order to use the CVAR. register_cvar("amx_ship_amount", "50") Like for example that one above how would I set it up like how I explained above? |
Re: CVAR can only be change by Certain Admins
Basically there is one flag for cvars.
Quote:
Why just don't give your admins cvar flag. Why do they need it anyway? |
Re: CVAR can only be change by Certain Admins
Quote:
|
Re: CVAR can only be change by Certain Admins
Quote:
Quote:
|
Re: CVAR can only be change by Certain Admins
It is for a server that is not mine. The server is a friend of mines. And yea I know that is what I mean they give amx_cvar so players can change Gravity in the server.
But I want to make a CVAR that controls how much Health a player should get like for a kill. For Example: amx_cvar player_kill_hp_bonus 50 I want it so only admins with Immunity can change the 50 value to like 20 or whatever else they want. If there isnt a way to do this than Ill tell him that there is a risk that other admins well change this value. Also if there is not a way to do this than is there a way to LOG what admins change this value? |
Re: CVAR can only be change by Certain Admins
The easiest way is to create a plugin with a function to do what you want. This way, you can control who uses it and what values are allowed. Very simple.
|
Re: CVAR can only be change by Certain Admins
Check out this plugin
http://forums.alliedmods.net/showthread.php?t=59535 or that version: http://forums.alliedmods.net/showthread.php?t=177180 It is using concmds as a cvars, pretty weird but it works. |
Re: CVAR can only be change by Certain Admins
Quote:
|
Re: CVAR can only be change by Certain Admins
Quote:
|
Re: CVAR can only be change by Certain Admins
Quote:
|
| All times are GMT -4. The time now is 21:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.