SA-MP Forums Archive
Load filterscript on Gamemode restart - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Load filterscript on Gamemode restart (/showthread.php?tid=647478)



Load filterscript on Gamemode restart - spyro9696 - 05.01.2018

I have this problem:
When I do /rcon gmx, my gm restarts, but some filterscripts, after the restarting, don't work correctly (also if I do /rcon loadfs name).
Is there a command that allows you to restart the server along with all the other filterscripts?


Re: Load filterscript on Gamemode restart - aoky - 05.01.2018

Just go to your server.cfg and add the filterscript into the filterscripts line.


Re: Load filterscript on Gamemode restart - spyro9696 - 05.01.2018

Quote:
Originally Posted by aoky
Посмотреть сообщение
Just go to your server.cfg and add the filterscript into the filterscripts line.
But they just are added in the filterscripts line!


Re: Load filterscript on Gamemode restart - TakeiT - 05.01.2018

GMX restarts the gamemode. I would actually recommend using /rcon exit then restarting the server.

However, if you want to restart the filterscript, under OnGameModeInit add SendRconCommand("reloadfs fsname");


Re: Load filterscript on Gamemode restart - spyro9696 - 06.01.2018

Is there a command, like /gmx, that restarts the GM together all filterscripts?
I found this thread talking about it: https://sampforum.blast.hk/showthread.php?tid=154079