Raised This Month: $ Target: $400
 0% 

[SM] Plugin load/unload management


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 06-21-2012 , 13:56   Re: [SM] Plugin load/unload management
Reply With Quote #1

Could even support other plugins by doing this:
Code:
stock ReloadPlugin(Handle:plugin = INVALID_HANDLE) {     decl String:filename[256];     GetPluginFilename(plugin, filename, sizeof(filename));     ServerCommand("sm plugins reload %s", filename); } stock UnloadPlugin(Handle:plugin = INVALID_HANDLE) {     decl String:filename[256];     GetPluginFilename(plugin, filename, sizeof(filename));     ServerCommand("sm plugins unload %s", filename); }
But I don't know who would want to reload other plugins by their handles...
Edit: Ooops typo, thanks 11530

Last edited by minimoney1; 06-22-2012 at 06:51.
minimoney1 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode