[FilterScript] | Jeremy | - Automatic Gates
#3

If you look closely,you'll see that the gates are in different positions.
In picture 2,it's a little under the ground.I'm sorry I couldn't take a clear picture,I'll add another picture,once I'm home.
Secondly,about making your own gates.Easy - Just replace the CREATEOBJECT code with your own,and replace the coordinates with your own.See below,for more info.
pawn Code:
forward TGate1();
public TGate1()
{
        new gateopen;
    if(!gateopen)
    MoveObject(Gate1, -838.46210, 2742.37427, 46.26330, 3); // THE OBJECTS POSITION WHEN IT'S CLOSED
        gateopen = 0;
        for(new i=GetMaxPlayers(); i > -1; i--)
    {
        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 5.0, -843.3140, 2738.1877, 44.7193))
        {
            gateopen = 1;
            MoveObject(Gate1, -838.4621, 2742.3743, 42.2823, 3); // OBJECTS POSITION WHEN IT'S OPENED
            break;
        }
    }
}
Reply


Messages In This Thread
| Jeremy | - Automatic Gates - by JeremyPeterson - 25.02.2014, 14:26
Re: | Jeremy | - Automatic Gates - by Omar55555 - 25.02.2014, 14:40
Re: | Jeremy | - Automatic Gates - by JeremyPeterson - 25.02.2014, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)