Raised This Month: $ Target: $400
 0% 

How to get actual cvar name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-22-2015 , 08:34   Re: How to get actual cvar name
Reply With Quote #1

I came up with the idea of making a CS Essentials plugin, inspired by the one used in Minecraft. If you're not familiar with it, the plugin has a bunch of commands that use special permissions, for example "essentials.tphere" (this permission allows you to use the "/tphere" command). In order to achieve something similar, I register every permission as a cvar and add an admin flag to it - register_cvar("essentials.tphere", "d"). So, when the user doesn't have the required flag, I want to make a chat message that will say "Insufficent permissions ( essentials.tphere ). Isn't there a simple way of doing this?
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 22:12.


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