Raised This Month: $32 Target: $400
 8% 

[CSGO] Stop restart match when empty


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Plugin ID:
7068
Plugin Version:
1.0
Plugin Category:
Technical/Development
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Block server command 'map xxx reserved' when first human player connect to server
    Old 04-26-2020 , 04:40   [CSGO] Stop restart match when empty
    Reply With Quote #1

    [CSGO] Stop restart match when empty
    Block server command 'map xxx reserved' when first human player connect to server
    Code:
    	26.04.2020
    	- I noticed, when first human player connect to empty server, server use command:
    	map currentmapname reserved
    	...and restart map, you start beginning of match, everytime.
    	
    	Of course, you need also set these so match not restart:
    	sv_hibernate_when_empty 0
    	bot_join_after_player 0
    
    	This plugin block this specific server command, when there is no human players in game already.
    	It works, when very first player connect to empty server (don't count bots).
    
    https://github.com/ambaca/Bacardi-Dumpster-of-SM-Plugins
    https://forums.alliedmods.net/
    
    SourceMod: Half-Life 2 Scripting
    www.sourcemod.net
    
    SourcePawn Compiler 1.10.0.6478
    Copyright (c) 1997-2006 ITB CompuPhase
    Copyright (c) 2004-2018 AlliedModders LLC
    
    Code size:             3756 bytes
    Data size:             2564 bytes
    Stack/heap size:      16384 bytes
    Total requirements:   22704 bytes

    No Cvars, No Commands.
    - Give reply of any bugs and issue what this could cause on server.


    GitHub
    Source *.sp
    Plugin *.smx
    __________________
    Do not Private Message @me
    Bacardi is offline
    Hiro.
    AlliedModders Donor
    Join Date: Jul 2017
    Old 04-26-2020 , 06:06   Re: [CSGO] Stop restart match when empty
    Reply With Quote #2

    Thanks, was looking for something like this!
    Hiro. is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 04-26-2020 , 06:10   Re: [CSGO] Stop restart match when empty
    Reply With Quote #3

    Your welcome. I haven't look/follow, what this could cause on server, is there reason to re-load map. Fingers cross.
    __________________
    Do not Private Message @me
    Bacardi is offline
    bikkser
    Junior Member
    Join Date: Nov 2020
    Location: Netherlands, Almere
    Old 11-22-2020 , 09:58   Re: [CSGO] Stop restart match when empty
    Reply With Quote #4

    I am looking forward to use this plugin but I have some troubles. I haven't add the sv_hibernate_when_empty 0
    and bot_join_after_player 0 commands. Should I put these in /home/[myinstance]/serverfiles/csgo/cfg/csgoserver.cfg or somewhere in sourcemod (common.cfg)

    - the smx is in ~/serverfiles/csgo/addons/sourcemod/plugins
    - the sp is in ~/serverfiles/csgo/addons/sourcemod/scripting

    [SM] Listing 22 plugins:
    01 "Reserved Slots" (1.10.0.6499) by AlliedModders LLC
    02 "gameME Plugin" (5.0.0) by TTS Oetzel & Goerz GmbH
    03 "Basic Ban Commands" (1.10.0.6499) by AlliedModders LLC
    04 "Admin File Reader" (1.10.0.6499) by AlliedModders LLC
    05 "Anti-Flood" (1.10.0.6499) by AlliedModders LLC
    06 "Nextmap" (1.10.0.6499) by AlliedModders LLC
    07 "[CS:GO] Deathmatch" (2.0.9) by Maxximou5
    08 "Fun Votes" (1.10.0.6499) by AlliedModders LLC
    09 "Player Commands" (1.10.0.6499) by AlliedModders LLC
    10 "Basic Commands" (1.10.0.6499) by AlliedModders LLC
    11 "Basic Info Triggers" (1.10.0.6499) by AlliedModders LLC
    12 "Autoreload" (1.0) by Timiditas
    13 "Admin Menu" (1.10.0.6499) by AlliedModders LLC
    14 "Basic Votes" (1.10.0.6499) by AlliedModders LLC
    15 "Admin Help" (1.10.0.6499) by AlliedModders LLC
    16 "Basic Chat" (1.10.0.6499) by AlliedModders LLC
    17 "Basic Comm Control" (1.10.0.6499) by AlliedModders LLC
    18 "Client Preferences" (1.10.0.6499) by AlliedModders LLC
    19 "Sound Commands" (1.10.0.6499) by AlliedModders LLC
    20 "Fun Commands" (1.10.0.6499) by AlliedModders LLC
    21 "TOG Clan Tags" (2.2.9) by That One Guy
    22 <Bad Load> csgo_stop_restart_match_when_empty.smx
    Errors:
    csgo_stop_restart_match_when_empty.smx: Unable to load plugin (bad header)
    bikkser is offline
    mrtn
    Junior Member
    Join Date: May 2020
    Old 10-20-2021 , 12:38   Re: [CSGO] Stop restart match when empty
    Reply With Quote #5

    I have been unsuccessfully fighting this behaviour (via the nextlevel cvar) for over a year and found your solution by chance today. It works perfectly! Thanks a lot Bacardi.

    Do you know why `map x reserved` would be called in the first place? Is the `reserved` flag even a valid argument?

    Last edited by mrtn; 10-20-2021 at 12:38.
    mrtn is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 10-20-2021 , 23:04   Re: [CSGO] Stop restart match when empty
    Reply With Quote #6

    I think it is. Can't remember anymore, it have been so long.
    Quote:
    Originally Posted by mrtn View Post
    I have been unsuccessfully fighting this behaviour (via the nextlevel cvar) for over a year and found your solution by chance today. It works perfectly! Thanks a lot Bacardi.

    Do you know why `map x reserved` would be called in the first place? Is the `reserved` flag even a valid argument?
    Bacardi is offline
    signalrunners
    New Member
    Join Date: Jul 2021
    Old 10-21-2021 , 16:56   Re: [CSGO] Stop restart match when empty
    Reply With Quote #7

    Hello
    Great plugin, thanks!

    CS:GO resets score, when all players discconnected. Is there any way to store score in rounds until players are reconnect?
    signalrunners is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 10-21-2021 , 18:09   Re: [CSGO] Stop restart match when empty
    Reply With Quote #8

    Yeah I guess. But I keep this plugin simple.
    Bacardi is offline
    signalrunners
    New Member
    Join Date: Jul 2021
    Old 10-28-2021 , 11:24   Re: [CSGO] Stop restart match when empty
    Reply With Quote #9

    Quote:
    Originally Posted by Bacardi View Post
    Yeah I guess. But I keep this plugin simple.
    Can you help me to write this fuctionality: do not reset score if map not ended, after last player disconnected?
    signalrunners 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 11:31.


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