03.12.2010, 01:53
ok, thx i got it ! this is what i have now!
Код:
forward MoveGates(); new Float:z; new Float:x; new Float:y; public OnGamemodeInit() { SetTimer("MoveGates", 2000, true); //2000 is 2 seconds, which means it will check every 2 seconds. Change it to whatever you want. } public MoveGates() { GetObjectPos(ob1, x, y, z); if (z == 148.59642029) { MoveObject(ob1 , -1136.44543457, -987.37402344, 130, 3.1); MoveObject(ob2 , -1136.31091309,-991.23712158, 160, 3.1); } else { MoveObject(ob1 , -1136.44543457, -987.37402344, 148.59642029, 3.1); MoveObject(ob2 , -1136.31091309,-991.23712158, 150.75749207, 3.1); } return 1; }