27.04.2017, 07:54
Код:
new mygate_status; OnFilterScriptInit: mygate = CreateObject(19277,-50.402030,1829.453125,19.898818,0.0000000,0.0000000,0.0000000); MoveObject(mygate, -50.402030,1829.453125,19.898818, 2.5); mygate_status = 1; public OnObjectMoved(objectid) { if(objectid == mygate) { if(mygate_status == 1) { MoveObject(mygate, -50.402030, 1829.45312, 28.398838, 2.5); mygate_status = 0; } else { MoveObject(mygate, -50.402030,1829.453125,19.898818, 2.5); mygate_status = 1; } } return 1; }