SA-MP Forums Archive
Is that possible? - 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: Is that possible? (/showthread.php?tid=524926)



Is that possible? - ScRipTeRi - 09.07.2014

Is there any way how to connect Gamemode with Filterscript?


Re: Is that possible? - BroZeus - 09.07.2014

if u mean tramsfer information from GM to FS and vice-versa then yes it is possible
go to https://sampwiki.blast.hk/wiki/Per-player_variable_system


Re: Is that possible? - ikey07 - 09.07.2014

You need CallRemoteFunction();

From gamemode use
pawn Код:
if(CallRemoteFunction("Callback","i",playerid) == 1)
{
//Variable from FS is 1;
}

and in FS it would be

pawn Код:
public Callback(playerid)
{
return VariableFromFS[playerid];
}



Re: Is that possible? - Stanford - 09.07.2014

Use includes instead..