21.05.2009, 12:50
Filterscript Loader v1.0
by dante @ LTU
(a.k.a. Ignas1337)
I've been reading through posts a while ago and I came across with a certain topic. It was a vehicle ownership for the godfather script. Now, we all know that godfather+FS vehicle ownership is no good without major editing, so I came up with this idea. If filterscripts are loaded BEFORE gamemodes, so why don't I switch that and make a gamemode load the filterscripts after everything has been set (for example vehicles has been spawned in GF).by dante @ LTU
(a.k.a. Ignas1337)
Credits
Credits to Denver(Astro) for his LoadTmp() function which I used as a base
Credits to whoever created 'split' function
Credits to anyone I forgot and me for bringing it all together.
What does this include do?
This include contains two functions: LoadFS and split. I needed the split to process the files. This script reads the file 'filterscripts.cfg' in scriptfiles folder and then starts tem using rcon command.
What should I do for it to work?
You should #define FILTERSCRIPT_COUNT before including this filterscript and modify the 'filterscripts.cfg' file in scriptfiles folder. FILTERSCRIPT_COUNT defines how many filterscript entries will be read on 'LoadFS()'
Downloads
I've included pawno with a new file which defines what is needed includes the include. Also there is a scriptfiles folder with filterscripts.cfg. Remove everything from it and place the names of filterscripts you need to use. Also, remove the filterscripts line from server.cfg. Redefine FILTERSCRIPT_COUNT to how many scripts you're using.
Rapidshare
Mediafire
Pastebin
Any mirrors would be great!
*Links updated*
(sorry, didn't find the rar, uploaded .inc only!)
If you require any help, post right away! If you find any bugs, I'll see in to it that they get solved. Thank you.