SA-MP Forums Archive
Technical help needed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Technical help needed (/showthread.php?tid=641473)



Technical help needed - kAn3 - 16.09.2017

Do I load filterscripts for my server's maps or do I include them as .inc files?


Re: Technical help needed - BrnX - 16.09.2017

yes italia from romaina the idioooo


Re: Technical help needed - Meller - 16.09.2017

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


Re: Technical help needed - DonaldDuck - 16.09.2017

its up to you.


Re: Technical help needed - kAn3 - 16.09.2017

Okay, but what is the best choice?


Re: Technical help needed - cuber - 16.09.2017

Loading them by server.cfg, I always do that.


Re: Technical help needed - Meller - 16.09.2017

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


Re: Technical help needed - kAn3 - 16.09.2017

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


Re: Technical help needed - Meller - 16.09.2017

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.