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
#2

I'll have to make a command in my GM to reload it then. Thanks for your reply.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)