Raised This Month: $ Target: $400
 0% 

Disabling plugin not as fatal error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 07-08-2016 , 15:36   Disabling plugin not as fatal error
Reply With Quote #1

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

Last edited by iGANGNAM; 07-08-2016 at 15:36.
iGANGNAM 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 21:55.


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