De jó hogy OFF témával kell hsz hunterkedni
Mivan?
local prefix = \"teszt4life\"gate = createObject(10828, 1550.5999755859, -1621.5999755859, 24.700000762939, 0, 0, 0) open = falsefunction checkOpen(source)if ( open == true ) then open = false gateClose(source)else open = true gateOpen(source)endendfunction gateOpen(source)moveobject ( gate, 10828, 1550.5999755859, -1621.5999755859, 24.700000762939 )outputChatBox ( prefix .. \"Teszt nyitva.\", source, 255, 255, 255, true )endfunction gateOpen(source)moveobject ( gate, 10828, 1550.5999755859, -1621.5999755859, 8.8999996185303 )outputChatBox ( prefix .. \"Teszt zárva.\", source, 255, 255, 255, true )endaddCommandHandler(\"teszt\", checkOpen)
local prefix = \"teszt4life\"local gate = createObject(10828, 1550.5999755859, -1621.5999755859, 24.700000762939, 0, 0, 0)local open = falsefunction gateOpen()open = truemoveObject(gate, 5000, 1550.5999755859, -1621.5999755859, 24.700000762939)outputChatBox(prefix .. \"Teszt nyitva.\", source, 255, 255, 255, true)endfunction gateClose()open = falsemoveObject(gate, 5000, 1550.5999755859, -1621.5999755859, 8.8999996185303)outputChatBox(prefix .. \"Teszt zárva.\", source, 255, 255, 255, true)endfunction checkOpen(source)if open thengateClose()elsegateOpen()endendaddCommandHandler(\"teszt\", checkOpen)
<script src=\"script.lua\" type=\"server\" />