26.02.2014, 15:36
Mhm.....you can check out my FilterScript.
| Jeremy | - AUTOMATIC GATES
Just Replace the codes with yours.
For your help:
| Jeremy | - AUTOMATIC GATES
Just Replace the codes with yours.
For your help:
pawn Код:
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;
}
}
}