SA-MP Forums Archive
Question about Gamemode and Filterscript. - 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: Question about Gamemode and Filterscript. (/showthread.php?tid=488607)



Question about Gamemode and Filterscript. - Blademaster680 - 18.01.2014

I am making a Gang Gamemode and I have made a dialog for when players join they choose their teams.
I have made a filterscript to keep the code for the capture zones.
The question is.
Is it possible that when the player selects their team it tells the FS what team they are on so the filterscript can use that info with the zone capturing?
If it is possible how could I do it?

Thanks


Re: Question about Gamemode and Filterscript. - Smileys - 18.01.2014

yea, it is.

https://sampwiki.blast.hk/wiki/CallRemoteFunction

use a PUBLIC function in your filterscript, then call it in your GM and pass on data through this function.


Re: Question about Gamemode and Filterscript. - Blademaster680 - 18.01.2014

But How would I call OnDialogResponse though for the FS to get all the information that is set in the gamemode?