Server Restart problem
#1

I got a problem cuz when i usually add something i need to restart the server but with /rcon gmx it just reloads the gamemode, but i want the whole server and all filterscripts to be reloaded...every time i need to close server and reopen it and i hate it soo much cuz it take so long and all players need to close their SA and join again....that sux, so if someone knows a way to make a filterscript that reloads the gamemode and ALL filterscripts set in the server.cfg then i would be very greatful!so please help!
Reply
#2

Just type ''gmx'' in the console without '' ''.
Reply
#3

Quote:
Originally Posted by multinfs
Посмотреть сообщение
I got a problem cuz when i usually add something i need to restart the server but with /rcon gmx it just reloads the gamemode, but i want the whole server and all filterscripts to be reloaded...every time i need to close server and reopen it and i hate it soo much cuz it take so long and all players need to close their SA and join again....that sux, so if someone knows a way to make a filterscript that reloads the gamemode and ALL filterscripts set in the server.cfg then i would be very greatful!so please help!
In your gamemode, under OnGameModeInit() - have this:

pawn Код:
public OnGameModeInit()
{
     SendRconCommand("reloadfs {scriptname without .amx}"); // Do this for how ever many scripts you need to reload.
}
Reply
#4

Quote:
Originally Posted by funky1234
Посмотреть сообщение
In your gamemode, under OnGameModeInit() - have this:

pawn Код:
public OnGameModeInit()
{
     SendRconCommand("reloadfs {scriptname without .amx}"); // Do this for how ever many scripts you need to reload.
}
If that doesnt work just put 'loadfs' instead.
Reply
#5

Quote:
Originally Posted by Camacorn
Посмотреть сообщение
If that doesnt work just put 'loadfs' instead.
Loadfs wont work, if a script is already loaded it wont 'load' again
Reply
#6

why you don't create /GMX command for Admins?
Reply
#7

Quote:
Originally Posted by funky1234
Посмотреть сообщение
In your gamemode, under OnGameModeInit() - have this:

pawn Код:
public OnGameModeInit()
{
     SendRconCommand("reloadfs {scriptname without .amx}"); // Do this for how ever many scripts you need to reload.
}
hmmm it looks good but if you add a FS to your server you will have to add/remove a line here too...
I will try to make a cmd that reads from the server.cfg file but i dont really konw how to read a single line and remove the Filterscripts at beginning and adding .amx at end tho... but you could too make a single FS that loads all the other scripts, it would be better i think...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)