28.11.2011, 19:22
Instead of loading the filtescript through server.cfg; at the very end of OnGameModeInit (the last thing before the closing parenthesis), add
. When you've done that, remove the filterscript name from the "filterscripts" line in server.cfg.
You may also want to add
to OnGameModeExit.
This way, the gamemode is 'initiated' before you load the filterscript (as filterscripts are loaded before gamemodes when using server.cfg - which in my opinion should be changed).
pawn Код:
SendRconCommand("loadfs [fsname]");
You may also want to add
pawn Код:
SendRconCommand("unloadfs [fsname]");
This way, the gamemode is 'initiated' before you load the filterscript (as filterscripts are loaded before gamemodes when using server.cfg - which in my opinion should be changed).