Admin Flags
My new plugin has only cvars. What should i add to the script to check it the person who is changing the cvar is an admin?
|
Re: Admin Flags
not you cant...
|
Re: Admin Flags
I know you cant specifically to the cvars... I was wondering what to add to the plugin that would make sure the admin is using the plugin...it doesnt have to be a cvar...
|
Re: Admin Flags
|
Re: Admin Flags
No, he's talking about cvars not commands. Just add FCVAR_SPONLY (I think this should wrong, if not not interpreting the description of it wrong) to the cvar flags when registering.
But just one question. Why would you want to make sure an admin is changing the cvar, when the only way if you're in game is through amx_cvar? |
Re: Admin Flags
*shrug* im still a young padawan...
But thanks for the help guys! |
Re: Admin Flags
As a side note: you can implement your own CVar's access levels system
Though you will have to provide the modified admincmd.sma as well as your plugin. |
Re: Admin Flags
VEN, thats really helpful. Thanks for showing me.
|
| All times are GMT -4. The time now is 22:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.