Raised This Month: $ Target: $400
 0% 

[SM] Plugin load/unload management


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 06-22-2012 , 10:54   Re: [SM] Plugin load/unload management
Reply With Quote #8

or use SetFailState, this pauses the plugin until it is reloaded.

Quote:
Originally Posted by Sourcemod API
Causes the plugin to enter a failed state. An error will be thrown and the plugin will be paused until it is unloaded or reloaded
but the best way is to just add a mapcheck OnMapStart(), yeah.


Quote:
Originally Posted by Dr. McKay View Post
I'm using a self-unloader on a game mode that I'm working on. It unloads the plugin if it detects an unsupported map. SourceMod automatically loads it again when the map changes.
No, sourcemod only does that if it is configured to do so, if someone changes this settings your plugin will simply fail.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0

Last edited by berni; 06-22-2012 at 10:57.
berni is offline
 



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