13.01.2014, 13:37
Just make some functions in your gamemode to return admin level for example.
Now make an include file to be used with filterscripts
Now you can use GetAdminLevel(playerid) in your filterscripts. However keep in mind you rarely should need a filterscript in a public server so chances are your better off using callback hooking and compiling into the gamemode its self.
pawn Код:
forward GetAdminLevel(playerid);
public GetAdminLevel(playerid) { return PlayerInfo[playerid][pAdmin]; }
pawn Код:
#define GetAdminLevel(%0) CallRemoteFunction("GetAdminLevel", "i", %0)