Raised This Month: $ Target: $400
 0% 

Completely restart server via amxx?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
^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 #1

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
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 05-17-2015 , 09:06   Re: Completely restart server via amxx?
Reply With Quote #2

Quote:
Originally Posted by ^SmileY View Post
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.
Thats not Amxmodx xD
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 05-17-2015 , 19:36   Re: Completely restart server via amxx?
Reply With Quote #3

Quote:
Originally Posted by Shooting King View Post
Thats not Amxmodx xD
What? i not se a reason to use amxmodx if the solution is in HLDS natively.

Sorry, but is the true.
__________________
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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode