Attach/connect a FS to a GM ? - 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: Attach/connect a FS to a GM ? (
/showthread.php?tid=431524)
Attach/connect a FS to a GM ? -
Saw® - 18.04.2013
Hey , Can we use things that we have in the gamemod (e.g [pAdminLevel]) in a FS that we don't have enums ....
to explain more :
for example : I have in Gamemode teams with their commands/stuffs.....
I have a /equip FS how to check the teams in the FS , should I define them?
NB : these above are only examples ...
thanks.
Re: Attach/connect a FS to a GM ? -
mahdi499 - 18.04.2013
Sorry But Filterscripts are Seperated from your GM,So you cannot Use Filterscript codes in your gm,unless you define them and move the filterscript inside your Gm,Hope this answers your question.
Re: Attach/connect a FS to a GM ? -
MP2 - 18.04.2013
If you want to share variables, you can use player-variables (see wiki SetPVarInt), but it's not really possible (or ideal) to be sharing entire arrays/enums. Use an include instead.
Re: Attach/connect a FS to a GM ? -
Saw® - 18.04.2013
Quote:
Originally Posted by mahdi499
Sorry But Filterscripts are Seperated from your GM,So you cannot Use Filterscript codes in your gm,unless you define them and move the filterscript inside your Gm,Hope this answers your question.
|
Thank you it helped me , I thought about this idea.
Quote:
Originally Posted by MP2
If you want to share variables, you can use player-variables (see wiki SetPVarInt), but it's not really possible (or ideal) to be sharing entire arrays/enums. Use an include instead.
|
Thanks , & yea I want to share entire things especially arrays & enums , I think I only have to put FS to the GM (will make GM longer but don't have other ways.)