Posts: 144
Threads: 19
Joined: Mar 2016
Reputation:
0
I wanted to ask that if it is possible that can we link ( add ) a filterscript to the gamemode, i do not mean copy pasting the filterscript, i just mean that can we just link it with the gamemode as my gamemode is going above 30k lines and it's very messy to handle as the filterscript I am making is 10k+. linking like, "xyz.amx" before GameModeInIt. If it is possible then can someone tell me how to do so?
Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
I tend to separate all my functions.. Having a pawn file for variables, one for handling player accounts etc. Then just linking them onto the main script.
Posts: 6,242
Threads: 8
Joined: Jun 2008
GrandLarceny does some of this.
It's not the best but it's in there. Mind out how you use the method though, as many use it in semi-flawed ways.
Another thing to look at is the method of "Hooks".
Posts: 144
Threads: 19
Joined: Mar 2016
Reputation:
0
I don't get it properly. Like, I have a gamemode named "BFSA" and I want to add my new admin system filterscript to it named, "adminscript" so how to I add the file to my gamemode. NOTE:- I am not saying to copying it, I just want to link my filterscript to my gamemode.
Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
Instead of using filterscripts, just section out your gamemode. Then save the files inside the gamemodes folder.
Posts: 6,242
Threads: 8
Joined: Jun 2008
If you are using variables to be shared, look into PVars and SVars, they are shared between FS and GMs.