How to import admin functions from a filterscript into gamemode
#10

i put them within the gatecheck function

the code im trying to restrict to admins only is

pawn Код:
public GateCheck()
{
    new admingate1Open;
    for(new playerid; playerid<MAX_PLAYERS; playerid++)
{
    if(IsPlayerInRangeOfPoint(playerid,15.0,2220.3957,-1139.3205,25.6949))admingate1Open=1;
}
    //AdminGate Los Santos
    if(admingate1Open)MoveObject(admingate1,2227.763428, -1146.743164, 26.401253, 3); //These are the coordinates of the gate if it were in it's opened state.
    else MoveObject(admingate1,2220.218018, -1144.315796, 26.401253, 3);//These are the coordinates of the gate if it were in it's closed state.
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)