06.04.2014, 05:52
how to put AdminLevel to FS ?
I have this on my GM
and how to put that script on FS ?
I have this on my GM
pawn Код:
PlayerInfo[playerid][Level] >= 5
PlayerInfo[playerid][Level] >= 5
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)
*/