Put AdminLevel to FS
#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


Messages In This Thread
Put AdminLevel to FS - by [IND]Crazy - 06.04.2014, 05:52
Re: Put AdminLevel to FS - by Diogo123 - 06.04.2014, 06:45
Re: Put AdminLevel to FS - by Dubya - 06.04.2014, 07:00

Forum Jump:


Users browsing this thread: 1 Guest(s)