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

Solved Disable warmup completely?


Post New Thread Reply   
 
Thread Tools Display Modes
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 03-06-2018 , 06:17   Re: Disable warmup completely?
Reply With Quote #11

Quote:
Originally Posted by Desktop View Post
Didn't work properly, it detects correctly warmup but only restarts the round, i still have to slay someone to let the match begin.
How about using this?

PHP Code:
#include <cstrike> 
PHP Code:
    if (GameRules_GetProp("m_bWarmupPeriod") == 1
    { 
        
ServerCommand("mp_warmup_end"); 
        
CS_TerminateRound(1.0CSRoundEnd_GameStart);
    } 
__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is offline
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 03-06-2018 , 20:32   Re: Disable warmup completely?
Reply With Quote #12

Quote:
Originally Posted by 1337norway View Post
How about using this?

PHP Code:
#include <cstrike> 
PHP Code:
    if (GameRules_GetProp("m_bWarmupPeriod") == 1
    { 
        
ServerCommand("mp_warmup_end"); 
        
CS_TerminateRound(1.0CSRoundEnd_GameStart);
    } 
Works like a charm, thanks!
__________________
Massive Infection:: Piu-Games
Desktop is offline
albiaps
Member
Join Date: Jun 2020
Old 03-18-2022 , 01:19   Re: Disable warmup completely?
Reply With Quote #13

Quote:
Originally Posted by backwards View Post
How about using this?

PHP Code:
#include <cstrike> 
PHP Code:
    if (GameRules_GetProp("m_bWarmupPeriod") == 1
    { 
        
ServerCommand("mp_warmup_end"); 
        
CS_TerminateRound(1.0CSRoundEnd_GameStart);
    } 
It shows me this error:
Code:
plugin.sp(16) : error 010: invalid function or declaration
Code:
    if (GameRules_GetProp("m_bWarmupPeriod") == 1)
__________________
albiaps is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-18-2022 , 13:49   Re: Disable warmup completely?
Reply With Quote #14

You can try
...cfg/gamemode_casual_server.cfg

Code:
sm_cvar bot_join_in_warmup 0
sv_warmup_to_freezetime_delay 0 // min. is actually 3
mp_warmuptime 0 // min. is actually 5
It not disable, but it would work very short time, player can't play that warmup.
__________________
Do not Private Message @me
Bacardi 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 09:33.


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