23.01.2012, 10:41
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:
'admin_reload' FS:
'admin' FS:
But it seems to have problems. I also tried a timer in the admin_reload filterscript, but it crashed the server.
'admin' FS:
pawn Код:
SendRconCommand("loadfs admin_reload");
// In the '/admin reload' command
pawn Код:
public OnFilterScriptInit()
{
SendRconCommand("reloadfs admin");
}
pawn Код:
public OnFilterScriptInit()
{
SendRconCommand("unloadfs admin_reload");
// Other stuff
}