Posts: 103
Threads: 9
Joined: Aug 2017
Reputation:
0
Do I load filterscripts for my server's maps or do I include them as .inc files?
Posts: 80
Threads: 32
Joined: Jul 2017
Reputation:
0
yes italia from romaina the idioooo
Posts: 578
Threads: 40
Joined: Dec 2016
Filterscripts are just what they're called, filtered scripts. You load them by either the server.cfg filterscript's line or by using the RCON command; (un)loadfs
Posts: 259
Threads: 39
Joined: Jun 2017
Posts: 103
Threads: 9
Joined: Aug 2017
Reputation:
0
Okay, but what is the best choice?
Posts: 849
Threads: 4
Joined: Oct 2016
Reputation:
0
Loading them by server.cfg, I always do that.
Posts: 578
Threads: 40
Joined: Dec 2016
Quote:
Originally Posted by kAn3
Okay, but what is the best choice?
|
Don't listen to DonaldDuck, you simply don't load filterscripts by "including" them in a gamemode, that's ridiculous.
https://sampwiki.blast.hk/wiki/Controlli..._Filterscripts
Posts: 103
Threads: 9
Joined: Aug 2017
Reputation:
0
Aye, but I am asking: what is the best choice for loading maps? Which takes less server resources? Including them into my gamemode or loading them into filterscripts?
Also I need to use my gamemode enums into the filterscript, and so I am tempted to just include that code into my gm
Posts: 578
Threads: 40
Joined: Dec 2016
Quote:
Originally Posted by kAn3
Aye, but I am asking: what is the best choice for loading maps? Which takes less server resources? Including them into my gamemode or loading them into filterscripts?
|
If that's your question, don't call it filterscripts.
Why would you even bother using additional compressed AMX scripts for maps? Simply put them in your main gamemode file or use #include "" to add the map codes in functions or hook's to the main gamemode, but don't use filterscripts for this.