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

Server Restart Modification / Help Requests/ can Authors help?


Post New Thread Reply   
 
Thread Tools Display Modes
Darkwob
BANNED
Join Date: Oct 2018
Old 09-26-2020 , 06:35   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #11

Quote:
Originally Posted by Bacardi View Post
ok, I updated my previous post
#8

- You can check timestamp when server suppose to "restart" with console command: timeleft
Code:
[SM] Restart server in 17Hours 21Minutes 41Seconds
Datetime = 09/27/2020 - 04:59:59
- There is now also Reconnect players at end. Remove that if gives trouble.
- To adjust time, try give more seconds in Query string.
Code:
"SELECT strftime('%s','now','start of day','+5 hours','-1 seconds','utc')");
to
"SELECT strftime('%s','now','start of day','+5 hours','-3 seconds','utc')");
so on...
Now I don't understand what happened in your last update, when there are no administrators on the server, will it automatically restart the server after the uptime period we set.
Darkwob is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 09-26-2020 , 07:00   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #12

Quote:
Originally Posted by Bacardi View Post
ok, I updated my previous post
#8

- You can check timestamp when server suppose to "restart" with console command: timeleft
Code:
[SM] Restart server in 17Hours 21Minutes 41Seconds
Datetime = 09/27/2020 - 04:59:59
- There is now also Reconnect players at end. Remove that if gives trouble.
- To adjust time, try give more seconds in Query string.
Code:
"SELECT strftime('%s','now','start of day','+5 hours','-1 seconds','utc')");
to
"SELECT strftime('%s','now','start of day','+5 hours','-3 seconds','utc')");
so on...
thanks a lot, have been looking for something like this for a long time, I will write it again here if everything works

Quote:
Originally Posted by Darkwob View Post
Now I don't understand what happened in your last update, when there are no administrators on the server, will it automatically restart the server after the uptime period we set.
No, it sends only the messages in the chat

Last edited by freak.exe_uLow; 09-26-2020 at 07:02.
freak.exe_uLow is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 09-26-2020 , 07:34   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #13

where did he show it before ?

center?
Darkwob is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 09-26-2020 , 08:18   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #14

Quote:
Originally Posted by Darkwob View Post
where did he show it before ?

center?
he should show it in the chat
freak.exe_uLow is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-26-2020 , 08:29   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #15

Darkwob, your request is in post 4 https://forums.alliedmods.net/showpo...05&postcount=4
__________________
Do not Private Message @me
Bacardi is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 09-26-2020 , 08:51   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #16

Quote:
Originally Posted by Bacardi View Post
I'm in this 4th post. I thought the admins would restart the server when they type "! restart 5 or directly! restart" in the chat screen. Does this plugin written by You automatically restart the Server?
Darkwob is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 09-26-2020 , 09:04   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #17

Quote:
Originally Posted by Darkwob View Post
I'm in this 4th post. I thought the admins would restart the server when they type "! restart 5 or directly! restart" in the chat screen. Does this plugin written by You automatically restart the Server?
he has written me another plugin, use what you have linked^^
freak.exe_uLow is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-26-2020 , 15:08   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #18

@Darkwob
Does your server start back up when you use server command quit (or exit )?

If not, then you don't have a script to start server back after shutdown.
Server hosts have some kind tool to keep SRCDS running.

There is very old batch script http://www.srcds.com/db/engine.php?s...&id=1097362093
Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
__________________
Do not Private Message @me
Bacardi is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 09-26-2020 , 19:45   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #19

Quote:
Originally Posted by Bacardi View Post
@Darkwob
Does your server start back up when you use server command quit (or exit )?

If not, then you don't have a script to start server back after shutdown.
Server hosts have some kind tool to keep SRCDS running.

There is very old batch script http://www.srcds.com/db/engine.php?s...&id=1097362093
Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
I'm not using anything, all I want is when the admin starts to lag on the server, I want it to be able to restart the server with the "! restart" command. By the way, if there is no admin in the game, I want to check the server uptime (after the time I set it) and make it start again.

For example, after 12 hours of uptime, the server automatically restarts, but it starts counting down from the default countdown (10 sec) and restarts the server.

When we reset the server as an admin or I, it should write like this in the chat panel.

>> blue /% n orange / Second Later Will Restart. <<
If the Server Auto-Restarts
>> blue /% n orange / Second Auto Restart after. <<
Darkwob is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-26-2020 , 19:59   Re: Server Restart Modification / Help Requests/ can Authors help?
Reply With Quote #20

Your server does auto restart on crash, so running "quit" from server console should make it restart. Try it. "sm_rcon quit" from client.
__________________
Silvers 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:27.


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