Raised This Month: $209 Target: $400
 52% 

Pause plugin on warmup round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
beniosq
Junior Member
Join Date: Apr 2010
Old 02-20-2017 , 08:43   Pause plugin on warmup round
Reply With Quote #1

Hi,
i have plugin antirush, but i want to pause this plugin when is warmup round. I found this code but i cant compile it. Someone can help? (CS:GO) Thanks.

PHP Code:
public void Event_RoundStart(Event event, const char[] namebool dontBroadcast

    if(
GameRules_GetProp("m_bWarmupPeriod") == 1
        {
            
ServerCommand("sm plugins unload antirush")
           }
    if(
GameRules_GetProp("m_bWarmupPeriod") == 0)
        { 
            
ServerCommand("sm plugins load antirush")
        }


Last edited by beniosq; 02-20-2017 at 10:18.
beniosq is offline
Michael Shoe Maker
Senior Member
Join Date: Apr 2016
Old 02-20-2017 , 10:41   Re: Pause plugin on warmup round
Reply With Quote #2

Why unload. Just make the plugin do nothing during the period.
Michael Shoe Maker is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 02-20-2017 , 18:08   Re: Pause plugin on warmup round
Reply With Quote #3

Quote:
Originally Posted by Michael Shoe Maker View Post
Why unload. Just make the plugin do nothing during the period.
Totally agree.

Unload/load on larger plugins will also hold up the server thread causing server variance spikes.
__________________
Neuro Toxin is offline
Reply


Thread Tools
Display Modes

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 12:47.


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