Garry's Mod

Garry's Mod

Ocen: 39
sv_restart (superadmin command)
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Content Type: Addon
Addon Type: Tool
Rozmiar pliku
Zamieszczono
Zaktualizowano
2.039 KB
1 lipca 2016 o 21:37
4 listopada 2016 o 8:09
Listy zmian: 4 ( zobacz )

Zasubskrybuj, aby pobrać
sv_restart (superadmin command)

W 5 kolekcjach stworzonych przez Cédric GÉRILLE [GiletJaune]
Soccer by Mohamed RACHID
Przedmioty: 37
Université Joseph Poireau (serveur)
Przedmioty: 70
MR: Serveur Garry's Mod Jeu en 2D
Przedmioty: 11
Dev Tests Mohamed
Przedmioty: 50
G-1:788429
Przedmioty: 50
Opis
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)
Komentarzy: 32
Cédric GÉRILLE [GiletJaune]  [autor] 10 września 2021 o 21:15 
What is wrong? :steamsad:
MARK_EDINOROGLOVE 19 lutego 2021 o 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]  [autor] 18 lutego 2021 o 15:31 
Do you know what the retry command is?
Run it from your game, not on the server!
MARK_EDINOROGLOVE 17 lutego 2021 o 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]  [autor] 14 lutego 2021 o 15:23 
I mean when you run it yourself from the console of your game.
MARK_EDINOROGLOVE 4 lutego 2021 o 9:23 
In what sense manually?
Cédric GÉRILLE [GiletJaune]  [autor] 3 lutego 2021 o 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 stycznia 2021 o 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]  [autor] 8 lipca 2020 o 6:57 
Huh, on Windows here is how you do it:
:begin
srcds.exe .....
goto begin
MARK_EDINOROGLOVE 8 lipca 2020 o 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 ... ??