AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Disabling plugin not as fatal error (https://forums.alliedmods.net/showthread.php?t=284982)

iGANGNAM 07-08-2016 15:36

Disabling plugin not as fatal error
 
Hello. I'm using this plugin and I'm trying to disable all plugins except core plugins while map doesn't have any mapzones.
Code:

public OnMapZonesLoaded()
{
        // If map has no start and end.
        if(Timer_GetMapzoneCount(ZtStart) == 0 && Timer_GetMapzoneCount(ZtEnd) == 0) {
                SetFailState("MapZones start and end points not found! Disabling!");
        }
}

I managed to do something like this, but it's not perfect way of doing it. Is there any way to disable it without SetFailState?


All times are GMT -4. The time now is 21:55.

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