25.02.2014, 15:26
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.
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;
}
}
}