View Single Post
headline
SourceMod Moderator
Join Date: Mar 2015
Old 03-03-2017 , 18:06   Re: General way of adding a cvar to disable/enable a plugin?
Reply With Quote #5

Quote:
Originally Posted by KarlmitC View Post
Thanks for the answer, just wanted to make sure that I don't start getting into the code and in the end i didn't even need to.
I'll have to try to get it working with one convar in the end, because the best way for my other plugins would be if they could just change that one.
I mean, you should always have some sort of algorithm or plan before you start doing anything.


If you have a plugin in which you want to create a convar to disable it, just don't allow it's commands & gameplay modifications to be called if the convar says it should be disabled. For example, in command callbacks just tell the user it's disabled. Simple stuff like that
headline is offline