[SM] Plugin load/unload management
These are a few stocks that a plugin can use to unload/reload itself.
PHP Code:
|
Re: [SM] Plugin load/unload management
nice
|
Re: [SM] Plugin load/unload management
Could even support other plugins by doing this:
Code:
Edit: Ooops typo, thanks 11530 |
Re: [SM] Plugin load/unload management
Quote:
|
Re: [SM] Plugin load/unload management
Quote:
|
Re: [SM] Plugin load/unload management
Quote:
Plugins that can only be disabled by unloading them should be unapproved right away IMHO. Rather add a bUsable variable or sth like that, set it in OnMapStart and check its value everytime your plugin does something. |
Re: [SM] Plugin load/unload management
Quote:
|
Re: [SM] Plugin load/unload management
or use SetFailState, this pauses the plugin until it is reloaded.
Quote:
Quote:
|
Re: [SM] Plugin load/unload management
Quote:
Quote:
Quote:
|
Re: [SM] Plugin load/unload management
Quote:
At least keep sure that the serveradmin knows why the plugin isn't doing anything. Quote:
Code:
/** |
| All times are GMT -4. The time now is 18:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.