02.02.2011, 17:59
Ok, I'll explain. Using CallRemoteFunction you can call any public function from any filterscript or gamemode. The function must always be public. In your case, because you have no parameters, you only need this:
Below is an example if you had multiple parameters:
If you had MyFunc in two filterscripts, it would print that message two times.
pawn Код:
//in gamemode
CallRemoteFunction("afterstop", "");
pawn Код:
//in gamemode
public OnPlayerConnect(playerid)
{
CallRemoteFunction("MyFunc", "ds", playerid, "connected");
}
//in filterscript
public MyFunc(playerid, text[])
{
printf("playerid %d has %s.", playerid, text);
}

