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

Warmup plugin help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ItsExTacY
Member
Join Date: Jul 2017
Location: Israel
Old 12-20-2018 , 14:12   Warmup plugin help
Reply With Quote #1

For some reason when a player disconnects and only 1 player is left it doesn't starts a warmup, help?
PHP Code:
public void OnClientPutInServer(int client)
{
    if(
GetClientCount() < 2){
        
ServerCommand("mp_warmup_start");
        
ServerCommand("mp_warmup_pausetimer 1");
    }
    else{
        
ServerCommand("mp_warmup_pausetimer 0");
    }
}

public 
void OnClientDisconnect(int client)
{
    if(
GetClientCount() < 2){
        
ServerCommand("mp_warmup_start");
        
ServerCommand("mp_warmup_pausetimer 1");
    }
    else{
        
ServerCommand("mp_warmup_pausetimer 0");
    }

ItsExTacY is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 12-21-2018 , 12:49   Re: Warmup plugin help
Reply With Quote #2

Is your server going into hibernation?
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman 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 10:29.


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