All pastes #572019 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-17 13:34 UTC
rendered paste body
public OpenAirportGates()
{
	new Float:X,Float:Y,Float:Z;
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
	GetPlayerPos(i, X,Y,Z);
if (X > 1956.6600 && X < 1966.6600 && Y > -2201.7600 && Y < -2177.7600 && Z > 13.0000 && Z < 17.0000)
{
		MoveObject(lsGate1, GatePos[lsGate1-1][0]+4.5,GatePos[lsGate1-1][1],GatePos[lsGate1-1][2], 2);
		MoveObject(lsGate2, GatePos[lsGate2-1][0]-4.5,GatePos[lsGate2-1][1],GatePos[lsGate2-1][2], 2);
                return 1;
}
}
}
Close the gates here
return 1;
}