AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO] Stop restart match when empty (https://forums.alliedmods.net/showthread.php?t=323695)

Bacardi 04-26-2020 04:40

[CSGO] Stop restart match when empty
 
[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

Hiro. 04-26-2020 06:06

Re: [CSGO] Stop restart match when empty
 
Thanks, was looking for something like this!

Bacardi 04-26-2020 06:10

Re: [CSGO] Stop restart match when empty
 
Your welcome. I haven't look/follow, what this could cause on server, is there reason to re-load map. Fingers cross.

bikkser 11-22-2020 09:58

Re: [CSGO] Stop restart match when empty
 
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)

mrtn 10-20-2021 12:38

Re: [CSGO] Stop restart match when empty
 
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 10-20-2021 23:04

Re: [CSGO] Stop restart match when empty
 
I think it is. Can't remember anymore, it have been so long.
Quote:

Originally Posted by mrtn (Post 2761110)
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?


signalrunners 10-21-2021 16:56

Re: [CSGO] Stop restart match when empty
 
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?

Bacardi 10-21-2021 18:09

Re: [CSGO] Stop restart match when empty
 
Yeah I guess. But I keep this plugin simple.

signalrunners 10-28-2021 11:24

Re: [CSGO] Stop restart match when empty
 
Quote:

Originally Posted by Bacardi (Post 2761250)
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?


All times are GMT -4. The time now is 21:24.

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