Raised This Month: $ Target: $400
 0% 

Completely restart server via amxx?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-17-2015 , 09:17   Re: Completely restart server via amxx?
Reply With Quote #1

I would need this to work for every server that runs my plugin, not only my own
I will look at module loading / unloading then, I sort of knew this wasn't possible since the whole autorestart on crash thing relies on child processes



edit:: server_cmd("restart") does the job
are there any problems with using this, problems I haven't found yet?
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 05-17-2015 at 09:28.
aron9forever is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-17-2015 , 13:20   Re: Completely restart server via amxx?
Reply With Quote #2

Quote:
Originally Posted by aron9forever View Post
edit:: server_cmd("restart") does the job
are there any problems with using this, problems I haven't found yet?
The server command "restart" is essentially the same as changing the map. It's is not the same as stopping the server and then starting the server (which is sometimes required, as I found out recently).
__________________
fysiks is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-17-2015 , 13:42   Re: Completely restart server via amxx?
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
The server command "restart" is essentially the same as changing the map. It's is not the same as stopping the server and then starting the server (which is sometimes required, as I found out recently).
welp, you're right. There was a problem with my implementation, metamod plugins are actually not reloaded on server_cmd restart

I guess restart is just a changelevel to the server's current map then, isn't it?


I will just notify users that they need to restart their servers then, there's no safe way of doing this and I won't risk crashing the server, people with no auto-restart will suffer from this
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
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