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
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.
__________________