06.04.2014, 07:00
In the Gamemode, have this function:
pawn Код:
forward GetFSAdminLevel(playerid);
public GetFSAdminLevel(playerid)
{
return PlayerInfo[playerid][Level];
}
// in the filterscript
stock GetAdminLevel(playerid)
{
return CallRemoteFunction("GetFSAdminLevel", "i", playerid);
}
/*
in filterscript
now instead of:
if (PlayerInfo[playerid][Level] >= 5)
use:
if(GetAdminLevel(playerid) >= 5)
*/