Retrieving variables from GM to FS
#5

You can use this:
pawn Код:
// In your gamemode
forward GetPlayerAdminLevel(playerid);
public GetPlayerAdminLevel(playerid)
{
    return PlayerInformation[playerid][admin];
}

// In your filterscript
#define GetPlayerAdminLevel(%0) CallRemoteFunction("GetPlayerAdminLevel", "i", %0)
Then you easily use GetPlayerAdminLevel(playerid) in your filterscript like PlayerInformation[playerid][admin] in your gamemode.

(Change them to whatever you want, just giving an example)
Reply


Messages In This Thread
Retrieving variables from GM to FS - by biker122 - 17.05.2014, 08:56
Re: Retrieving variables from GM to FS - by Threshold - 17.05.2014, 09:04
Re: Retrieving variables from GM to FS - by biker122 - 17.05.2014, 09:06
Re: Retrieving variables from GM to FS - by Threshold - 17.05.2014, 09:09
Re: Retrieving variables from GM to FS - by Stinged - 17.05.2014, 09:09

Forum Jump:


Users browsing this thread: 1 Guest(s)