General way of adding a cvar to disable/enable a plugin?
Hi everyone,
I want some plugins on our servers to interact with each other. That means that the one plugin may enable/disable another plugin. Since some of the plugins aren't being developed any further I wanted to change some of them so that I have a cvar to disable/enable that plugin. Is there a general way of achieving this or does that always depend on the plugin? Thanks. :) |
Re: General way of adding a cvar to disable/enable a plugin?
Convars or natives is my guess.
|
Re: General way of adding a cvar to disable/enable a plugin?
Quote:
I was faced with the same problem with myjailbreak and ended with a mix of creating convars & natives. Whether you use natives or convars is depending on the plugins & the way they need to interact with each other. |
Re: General way of adding a cvar to disable/enable a plugin?
Quote:
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. |
Re: General way of adding a cvar to disable/enable a plugin?
Quote:
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 |
Re: General way of adding a cvar to disable/enable a plugin?
or, or, or..
FindConVar |
Re: General way of adding a cvar to disable/enable a plugin?
Quote:
|
Re: General way of adding a cvar to disable/enable a plugin?
Quote:
|
All times are GMT -4. The time now is 01:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.