17.05.2014, 09:09
You can use this:
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)
pawn Код:
// In your gamemode
forward GetPlayerAdminLevel(playerid);
public GetPlayerAdminLevel(playerid)
{
return PlayerInformation[playerid][admin];
}
// In your filterscript
#define GetPlayerAdminLevel(%0) CallRemoteFunction("GetPlayerAdminLevel", "i", %0)
(Change them to whatever you want, just giving an example)