Filterscript function to Gamemode? - 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: Filterscript function to Gamemode? (
/showthread.php?tid=295447)
Filterscript function to Gamemode? -
Admigo - 06.11.2011
Heey all,
Is it possible to set a function from fs to gm.
Example:In my gm i have skills and i want to make terrorist skill who can blow up player houses.
I want to use Garhouse Filterscript and i only need this function:
Код:
if(checkpointid == HouseCPOut[0])
{
SendClientMessage(playerid,COLOUR_GREEN,"Test!");
return 1;
}
I cant copy the whole code from garhouse to my script because i get much errors.
Pls help me.
Thanks Admigo
Re: Filterscript function to Gamemode? -
Stigg - 06.11.2011
https://sampwiki.blast.hk/wiki/CallLocalFunction
https://sampwiki.blast.hk/wiki/CallRemoteFunction
Re: Filterscript function to Gamemode? -
Admigo - 06.11.2011
Can you give an example pls? I never used this function.
Re: Filterscript function to Gamemode? -
Stigg - 06.11.2011
pawn Код:
//from fs to gm
CallRemoteFunction("your_function", "i", playerid);
Read the wiki links, very helpfull.
Re: Filterscript function to Gamemode? -
Admigo - 06.11.2011
How can i get only this:HouseCPOut[0] from the fs to gm?
I only need to the checkpoint ids for the fs.