Quote:
Originally Posted by Mecha the Slag
Hi. I have a main plugin and several smaller plugins used with it.
At several points I need to unload and load a plugin. How is this done using a plugin? Thanks in advance!
|
The right answer:
You shouldn't need to. Register a plugin library in the main plugin. In the smaller plugins, use a bool to keep track of whether or not the main one is loaded. You can check on start with LibraryExists and get notified of a change with OnLibraryAdded and OnLibraryRemoved. Don't call natives from it if it's not loaded.
The answer to your actual question:
GetPluginIterator + ReadPlugin + GetPluginFilename + ServerCommand w/ "sm plugins (un)load"