AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [L4D2] Auto Restart Server (https://forums.alliedmods.net/showthread.php?t=338820)

A1ekin 07-27-2022 20:15

[L4D2] Auto Restart Server
 
Hello

Help me please

I want my L4D2 dedicated server to reboot daily at a certain time
I wrote a plugin to warn the players about the restart, but I didn't manage to figure out how to force the server to restart automatically.

Help if you know any suitable script or plugin

P.S. Server installed on Ubuntu 20.04.3 LTS

alasfourom 07-27-2022 23:44

Re: [L4D2] Auto Restart Server
 
Use This:

Restart Empty Server

You can adjust your restart time when its empty

A1ekin 07-28-2022 08:49

Re: [L4D2] Auto Restart Server
 
Quote:

Originally Posted by alasfourom (Post 2785055)
Use This:

Restart Empty Server

You can adjust your restart time when its empty

Thanks
I will check it today

For some reason I couldn't find this plugin.

A1ekin 07-29-2022 13:03

Re: [L4D2] Auto Restart Server
 
Quote:

Originally Posted by alasfourom (Post 2785055)

It's not exactly what I need
I need the server to restart automatically at a specific time, regardless of whether there were players on it or not recently, and regardless of whether they are there now or not

Marttt 07-29-2022 15:01

Re: [L4D2] Auto Restart Server
 
Did you try?
https://forums.alliedmods.net/showthread.php?t=87291
Note: The hour may be not the same as the server depending on where you host.

If don't work try searching here:
https://www.sourcemod.net/plugins.ph...start&search=1

Dragokas 08-05-2022 15:29

Re: [L4D2] Auto Restart Server
 
Double my answer from PM:

For: Restart Empty Server

you may use following ConVars:
Code:

sm_restart_empty_force_hour_start 5
sm_restart_empty_force_hour_end 6

to make forcible server restart between 5 and 6 AM.
Restart will only happen, if somebody disconnect from server during this period.


All times are GMT -4. The time now is 11:43.

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