cuboid = createColCuboid ( 1111.15, 1270.74, 9.80, 35.25, 63, 28) ZL_TIMER = { } ZL_NAME = "DayZBoyZ" function target(element, dim) if dim == true then setTimer(target2, 3000, 1, element, dim) outputChatBox("Masz 3 sekund na opuszczenie tego terenu!", element) outputChatBox("Ta Baza jest na Grupe: DayZBoyZ", element) if (isVehicleDamageProof(getPedOccupiedVehicle(player))) then setVehicleDamageProof(getPedOccupiedVehicle(player),true) end end addEventHandler("onColShapeHit", cuboid, target) addEventHandler("onColShapeLeave", cuboid, function(element, dim) local gracz = (getElementType(element) == "player" and element or getVehicleController(element)) setVehicleDamageProof(getPedOccupiedVehicle(player),false) if isTimer(ZL_TIMER[element]) then killTimer(ZL_TIMER[element]) end end) function ZL_killIntruder(p) setElementData(p, "blood", -18) setTimer(target2, 100, 1, p, true) end function target2(element, dim) if isElementWithinColShape(element, cuboid) then if getElementType(element) == "player" then gracz = element if getElementData(gracz, "gang") ~= ZL_NAME then ZL_TIMER[element] = setTimer(ZL_killIntruder, 150, 1, gracz) end end end end Brama=createObject(10828, 1128.5999755859, 1345.5, 22.10000038147, 0, 0, 0) function OtworzBrame () moveObject ( Brama, 2000, 1128.5999755859, 1345.5, 6 ) end addCommandHandler("123321123", OtworzBrame ) function ZamknijBrame () moveObject ( Brama, 2000, 1128.5999755859, 1345.5, 22.10000038147 ) end addCommandHandler("123321123", ZamknijBrame )