26.08.2011, 16:28
(
Last edited by Amel_PAtomAXx; 27/08/2011 at 10:49 PM.
)
I think that for Automatic Gates is more simple to use like this :
i was test it and it work for me..
pawn Code:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,13.00,X,Y,Z)) // X,Y,Z Cordinates of closest gate
{
MoveDynamicObject(gate,X,Y,Z,2.00); // Cordinates of opened gate
SetTimer("close",7000,false);
return 1;
}
return 1;
}
forward close();
public close()
{
MoveDynamicObject(gate,X,Y,Z,2.00); // Cordinates of closed gate
return 1;
}