Is this possible? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is this possible? (
/showthread.php?tid=142742)
Is this possible? -
Torran - 19.04.2010
Is it possible to like reload all the filterscripts loaded upon gamemode loading?
So like
public OnGameModeInit()
{
ReloadAllFS();
return 1;
}
Re: Is this possible? -
Amit_B - 19.04.2010
If you did'nt used "loadfs" / "unloadfs" before the gamemode loading - yes.
Re: Is this possible? -
aircombat - 19.04.2010
u can use something like :
forward ReloadAllFS();
public ReloadAllFS()
{
SendRconCommand("reloadfs script1");
SendRconCommand("reloadfs script2");
SendRconCommand("reloadfs script3");
return 1;
}
but i dont think there is another way
Re: Is this possible? -
Torran - 19.04.2010
Thats the thing :P i want it to reload all FS, I wouldnt know all the names,
Cause it switches my computer off if i do GMX and dont reload all FS
Re: Is this possible? -
aircombat - 19.04.2010
u can edit ur /gmx to reloadfs not just restart the gm
Re: Is this possible? -
Torran - 19.04.2010
You dont understand :P,
I wouldnt know what FS are loaded at that time so i couldnt use reloadfs
As not all of them would reload as it would only reload the ones i told it to,
Not all the current loaded ones
Re: Is this possible? -
Westie - 19.04.2010
Quote:
Originally Posted by Joe Torran C
Thats the thing :P i want it to reload all FS, I wouldnt know all the names,
Cause it switches my computer off if i do GMX and dont reload all FS
|
Err... wait what?
Re: Is this possible? -
Torran - 19.04.2010
Quote:
Originally Posted by /^We(stie|z+[e|a
r)$/ ]
Quote:
Originally Posted by Joe Torran C
Thats the thing :P i want it to reload all FS, I wouldnt know all the names,
Cause it switches my computer off if i do GMX and dont reload all FS
|
Err... wait what?
|
Ok so when my server starts. It loads ladmin4v2, My roadblock system and flight system,
But RCON Admins load other filterscripts. So when a admin uses GMX, If i dont reload all loaded filterscripts,
It closes my server, So im wondering if theres a way for the server to get all the names of all loaded FS,
And reload them.. I already have it set to reload ladmin4v2, But i cant on other FS that admins have loaded
Re: Is this possible? -
dice7 - 19.04.2010
no