Raised This Month: $ Target: $400
 0% 

[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 , 05: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 , 07: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 , 07: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 , 10: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
    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 18:31.


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