Reloading a filterscript from inside itself
#1

I have a sort of RCON filterscript, because I don't want to risk using proper RCON, and I want to make '/admin reload' reload said filterscript. You can't just "reloadfs admin" from the admin FS because it crashes the server, so I tried this:

'admin' FS:

pawn Код:
SendRconCommand("loadfs admin_reload");

// In the '/admin reload' command
'admin_reload' FS:

pawn Код:
public OnFilterScriptInit()
{
    SendRconCommand("reloadfs admin");
}
'admin' FS:

pawn Код:
public OnFilterScriptInit()
{
    SendRconCommand("unloadfs admin_reload");
    // Other stuff
}
But it seems to have problems. I also tried a timer in the admin_reload filterscript, but it crashed the server.
Reply


Messages In This Thread
Reloading a filterscript from inside itself - by MP2 - 23.01.2012, 10:41
Re: Reloading a filterscript from inside itself - by MP2 - 23.01.2012, 11:35

Forum Jump:


Users browsing this thread: 1 Guest(s)