Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
So, i have a stock in my filterscript there you hide all server textdraws if you press a button, but i also have textdraws in my gamemode too, so if i type /rules (this one is in the gamemode), and type /admincmds (this is from the filterscript), they both show up at the same time, but if i type /admincmds and /caged, the first textdraw will disappear, so my question is, can i set a pvar or something in this stock in the filterscript?
how can i do so it detects other textdraws in the gm?
Posts: 233
Threads: 46
Joined: Nov 2011
Reputation:
0
You need to create 2 cmds/script to hide the TextDraws: 1 in Game Mode and other in FilterScript, because is not possible hide a TexdDraw from GM by command/script from FS.
Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
I know this but how can it detect when a textdraw is open in either gm or the fs?
Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
Really need help with this...
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
The textdraw IDs are stored in variables that are in the script in which they are created, so you can't really. The only thing I can suggest is to use CallRemoteFunction.
In the gamemode, have the command hide all the gamemode textdraws, and then call a function in the FS with CallRemoteFunction. In that function in the FS, hide the FS textdraws.
Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
What do you guys think?
Is it better to have a GM with 4 filterscripts or is it better to place it all into the GM?