Detect "restart" command
How to detect command "restart" typed in server console(or player by rcon/hlsw by rcon)?
|
Re: Detect "restart" command
the "restart" command or "sv_restart" / "sv_restartround" ?
for "restart", you just register it... PHP Code:
|
Re: Detect "restart" command
Doesn't work
|
Re: Detect "restart" command
Does this helps you?
PHP Code:
|
Re: Detect "restart" command
register_srvcmd("restart","cmd_restart")
if function cmd_restart doesn't exist then console show error if function exist then not work FM_ServerDeactivate works: - when restart is typed? - when server reserved? |
Re: Detect "restart" command
Quote:
|
Re: Detect "restart" command
Well, you can detect restart this way:
PHP Code:
|
Re: Detect "restart" command
Quote:
|
Re: Detect "restart" command
grankee
What for you need it? When you write "restart" then all plugins stop, and then renew work at map loading. |
Re: Detect "restart" command
Quote:
but first exec plugin_end() func, right? but when server crash and stand up trice, no functions are executed, right? Sometimes server just automatically restart and I need to detect what option is true -server crash and stand up trice -wicked guy, who borrow me one of four dedicated server on machine, type restart |
| All times are GMT -4. The time now is 01:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.