headedtomexico
New member
- Joined
- Dec 9, 2008
- RedCents
- 0¢
I posted this in the wrong forum originally, my appoligies. Im trying to find a way to make a plugin shut itself down. Much in the way /plugin blahblah unload does, but I want to plugin to do it to itself. For instance plugins that have another required plugin to run. Like netbots and eqbc. I have a plugin idea that requires the plugin to shut itself off in certain circumstances.
I've tried calling UnloadMQ2Plugin() with the plugin name, and It just crashes the session. I've also tried sorting through pPlugins till the plugin finds itself, andinvoking the Shutdown() call from there, and I get the same results, a crash. This is no suprise since its basically what UnloadMQ2Plugin() does.
I think it would be sloppy to do a DoCommand with /plugin, but I'm all outa ideas.
Anyone know how to pull this off?
I've tried calling UnloadMQ2Plugin() with the plugin name, and It just crashes the session. I've also tried sorting through pPlugins till the plugin finds itself, andinvoking the Shutdown() call from there, and I get the same results, a crash. This is no suprise since its basically what UnloadMQ2Plugin() does.
I think it would be sloppy to do a DoCommand with /plugin, but I'm all outa ideas.
Anyone know how to pull this off?