Raised This Month: $51 Target: $400
 12% 

Solved Stop plugin if(my_condition)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 08-16-2018 , 13:56   Stop plugin if(my_condition)
Reply With Quote #1

How do I disable plugin?

PHP Code:
if(my_condition) {
//stop plugin


Last edited by Airkish; 08-16-2018 at 15:00.
Airkish is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-16-2018 , 14:02   Re: Stop plugin if(my_condition)
Reply With Quote #2

pause function?
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 08-16-2018 , 14:34   Re: Stop plugin if(my_condition)
Reply With Quote #3

Quote:
Originally Posted by Ghosted View Post
pause function?
But with pause you can unpause in amxmodmenu? I don't need that.

Edit: I just saw flag "d", ty Ghosted

Last edited by Airkish; 08-16-2018 at 14:44.
Airkish is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-16-2018 , 22:07   Re: Stop plugin if(my_condition)
Reply With Quote #4

set_fail_state() is best if you want to completely disable a plugin for the entire map. It even allows you to set a reason that will show up in the plugins list.
__________________
fysiks 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 23:37.


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