Garry's Mod
Оценок: 39
sv_restart (superadmin command)
   
Наградить
В избранное
В избранном
Удалить
Тип контента: Дополнение
Тип дополнения: Инструмент
Размер файла
Добавлен
Изменён
2.039 KB
1 июл. 2016 г. в 21:37
4 ноя. 2016 г. в 8:09
Обновлений: 4 (просмотреть)

Подпишитесь, чтобы загрузить
sv_restart (superadmin command)

В 5 коллекциях, созданных Cédric GÉRILLE [GiletJaune]
Soccer by Mohamed RACHID
Предметов: 37
Université Joseph Poireau (serveur)
Предметов: 70
MR: Serveur Garry's Mod Jeu en 2D
Предметов: 11
Dev Tests Mohamed
Предметов: 50
G-1:788429
Предметов: 50
Описание
This addon provides the console command sv_restart. It allows to restart the server easily without using RCon.

Notes
- This addon is only designed for servers. Do not put it as auto-download for clients.
- The default bash that comes with Garry's Mod for Linux does not restart the server (with crash or not). You need to fix it for the restart to work.
- On Windows you need to loop your .cmd / .bat script. Here is how you do it:
:begin srcds.exe ..... goto begin

[curse.com]

Usage
Restart the server in {delay} seconds:
sv_restart [delay=10]
Cancel a pending restart:
sv_restart -1

See also
map_reload (superadmin command)
Комментариев: 32
Cédric GÉRILLE [GiletJaune]  [создатель] 10 сен. 2021 г. в 21:15 
What is wrong? :steamsad:
MARK_EDINOROGLOVE 19 фев. 2021 г. в 12:24 
sv_restart
Commencing connection retry to 192.168.0.100:27015
Restoring gamemode to sandbox
Client sending to server with no netchannel!
SoundEmitter: removing map sound overrides [3 to remove, 0 to restore]
Connecting to 192.168.0.100:27015...
The server will restart in 0 seconds!
Please wait before coming back.
Restoring gamemode to sandbox

This is run in the game
Cédric GÉRILLE [GiletJaune]  [создатель] 18 фев. 2021 г. в 15:31 
Do you know what the retry command is?
Run it from your game, not on the server!
MARK_EDINOROGLOVE 17 фев. 2021 г. в 12:18 
sv_restart
Dropped MARK_EDINOROGLOVE from server (Disconnect by user.)
Dropped vandrenko from server (Disconnect by user.)
86.100.164.25:27005: password failed.
192.168.0.100:27006: password failed.
Cédric GÉRILLE [GiletJaune]  [создатель] 14 фев. 2021 г. в 15:23 
I mean when you run it yourself from the console of your game.
MARK_EDINOROGLOVE 4 фев. 2021 г. в 9:23 
In what sense manually?
Cédric GÉRILLE [GiletJaune]  [создатель] 3 фев. 2021 г. в 14:16 
Hi! I have not started GMod in a while, that must be due to an update.
What happens when you manually use the retry console command??
MARK_EDINOROGLOVE 11 янв. 2021 г. в 13:56 
I have a new problem here, when I write sv_restart the server starts the report, as soon as it reaches zero, the message is displayed, the server will restart in 0 seconds! 192.168.0.100:27007: password failed is written to the server console. although there is no password on the server( what to do?
Cédric GÉRILLE [GiletJaune]  [создатель] 8 июл. 2020 г. в 6:57 
Huh, on Windows here is how you do it:
:begin
srcds.exe .....
goto begin
MARK_EDINOROGLOVE 8 июл. 2020 г. в 2:28 
Okay, but how can I edit the script then, it’s just that I have a server that opens in cmd and half of the FIG add-ons know where, but there is nothing in the addons folder, or maybe then drop the repository from github or maybe send it to discord ... ??