28.02.2013, 08:11
Try this code, Maybe it will work
Quote:
new drag1, drag2; drag1 = CreateObject(970, -172.43, 1409.84, 66.71, 0.00, 0.00, 90.00); drag2 = CreateObject(970, -172.43, 1404.64, 66.71, 0.00, 0.00, 90.00); forward Open(playerid); forward Close(playerid); SetTimerEx("Open", 40000, true, "d" , playerid); public Open(playerid) { SetTimerEx("Close", 20000, true, "d" , playerid); MoveObject(drag1, -172.43, 1409.84, 66.71 , 5.00); MoveObject(drag2, -172.43, 1404.64, 66.71 , 5.00); } public Close(playerid) { MoveObject(drag1, -172.43, 1409.84, 65.87 , 5.00); MoveObject(drag2, -172.43, 1404.64, 65.87 , 5.00); } |