Posts: 929
Threads: 135
Joined: Sep 2009
Reputation:
0
Hellow guys, i'm here for asking if it's there a way to restart just some parts of the GM using FS or something, i mean i want to be able to update the server without restarting it.
Posts: 929
Threads: 135
Joined: Sep 2009
Reputation:
0
Updating a command from the server for ex.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Yes, you can use filterscripts. But take great care that you also clean up everything on unload otherwise you're going to run into some serious trouble. A gamemode has the advantage that an implicit cleanup takes place on exit but a filterscript has no such advantage. Entities that you create within the filterscript must be explicitly destroyed on exit or else they will persist and duplicates will be generated when the script gets loaded again.
Posts: 929
Threads: 135
Joined: Sep 2009
Reputation:
0
So using gvar will help me up?
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
So for example, you want to update /cmds without having to restart the server?
Posts: 694
Threads: 2
Joined: Oct 2012
Reputation:
0
Unless you know your code too well and as Vince said cleanup when unloading FS, I strongly recommend you not to do that, a single thing you forget to remove OnFSExit and your dreams will turn into nightmares!
But yeah, it is technically possible to be done by using Filterscripts.