17.11.2010, 13:29
Check the wiki -> Automatic_Gates
BUT the last code has a mistake in it, take that one instead
BUT the last code has a mistake in it, take that one instead
pawn Код:
forward CheckGate();
public CheckGate()
{
new i;
for( ; i != MAX_PLAYERS; i++)
if(IsPlayerInRangeOfPoint(i, 10.0, closed_X, closed_Y, closed_Z))
break;
if(i != MAX_PLAYERS) MoveObject(mygate, open_X, open_Y, open_Z, Moving_Speed);
else MoveObject(mygate, closed_X, closed_Y, closed_Z, Moving_Speed);
}

