View Single Post
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 05-17-2015 , 08:47   Re: Completely restart server via amxx?
Reply With Quote #7

Quote:
Originally Posted by Shooting King View Post
I guess we can do that with Amxmodx Module using OS Threads and Process API. When you are going to "quit" an HLDS, start another individual process (store its handle in secondary storage). This process should give some delay after it has detected that hlds process has been ended and execute a start cmd to start HLDS again.
Yeah, that is called _restart command native from HLDS, shoud be used with -autorestart at windows only i guess.

Ps.
Crate a simple .bat file or use screen in linux to restart process using quit command.
Is impossible to do a full restart without do it.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY