HELP Automatic Gate To Open For Admin Only
#1

I need help making this gate open only when an admin approaches it, i had a go myself but it just didnt work lol, im using Xtremes Admin System. The code 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.

}
Thanks
Reply


Messages In This Thread
HELP Automatic Gate To Open For Admin Only - by Stryke - 22.08.2010, 11:04
Re: HELP Automatic Gate To Open For Admin Only - by Typhome - 22.08.2010, 11:11
Re: HELP Automatic Gate To Open For Admin Only - by SaW_[VrTx] - 22.08.2010, 11:31
Re: HELP Automatic Gate To Open For Admin Only - by Scenario - 22.08.2010, 11:56
Re: HELP Automatic Gate To Open For Admin Only - by Stryke - 22.08.2010, 13:28
Re: HELP Automatic Gate To Open For Admin Only - by Scenario - 22.08.2010, 18:59

Forum Jump:


Users browsing this thread: 5 Guest(s)