Put AdminLevel to FS
#1

how to put AdminLevel to FS ?
I have this on my GM
pawn Код:
PlayerInfo[playerid][Level] >= 5
and how to put that script on FS ?
Reply
#2

https://sampwiki.blast.hk/wiki/CallRemoteFunction
Reply
#3

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)
*/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)