Garry's Mod

Garry's Mod

40 个评价
sv_restart (superadmin command)
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
文件大小
发表于
更新日期
2.039 KB
2016 年 7 月 1 日 下午 9:37
2016 年 11 月 4 日 上午 8:09
4 项改动说明 ( 查看 )

订阅以下载
sv_restart (superadmin command)

在 Cédric GÉRILLE [GiletJaune] 的 5 个合集中
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)
59 条留言
H4PPY 4 月 14 日 下午 1:26 
sv_restart
H4PPY 4 月 14 日 下午 1:26 
are you kinda dumb in this addon
Cédric GÉRILLE [GiletJaune]  [作者] 4 月 14 日 下午 12:52 
But in the code of which add-on? That's quite the question!
H4PPY 4 月 14 日 上午 3:15 
well maybe you might HAVE to look in your code since yeah my gmod server aint public or port forwarded used something special
Cédric GÉRILLE [GiletJaune]  [作者] 4 月 13 日 上午 10:58 
Well, I don't know what can be going on, since there is no server password set, as you mentioned.
H4PPY 4 月 13 日 上午 10:54 
no
Cédric GÉRILLE [GiletJaune]  [作者] 4 月 13 日 上午 10:48 
And you did not see any message about a hook returning a value?! Maybe there is a hook system replacement somewhere, I do not know.
H4PPY 4 月 13 日 上午 6:29 
I DID
Cédric GÉRILLE [GiletJaune]  [作者] 4 月 13 日 上午 6:17 
If nobody connects to your server, the event you want to monitor with `find_conflicts_hook_sv CheckPassword` will never fire.
H4PPY 4 月 10 日 上午 5:08 
its a private server i have hosted like i said with pterodactyl