27.07.2012, 06:51
What's going on here is that the gate will open for a player with say ID 80, but when it goes to check ID 81, and they aren't near the gate, it will close the gate. What you should do is have a function in OnPlayerUpdate to check if they are in range of the gate, if they are have it open the gate and set a timer to close the gate.