Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local zones = {
- {pos1 = Vector(-7429.713379, 9201.883789, 7166.239746), pos2 = Vector(-6901.860840, 9936.961914, 6883.878906)},
- {pos1 = Vector(5514.738770, 4102.645020, 7867.975586), pos2 = Vector(6351.300293, 3320.909424, 7451.149414)},
- {pos1 = Vector(4204.395508, -5549.744141, 7393.341309), pos2 = Vector(4615.758301, -5994.053223, 7232.645996)},
- {pos1 = Vector(-10222.4, -17206.1, 9970), pos2 = Vector(-15650.8, -12684.4, 7156.2)},
- {pos1 = Vector(-9353.3, -2730.4, 7549.7), pos2 = Vector(-8726, -2121.9, 7266)}
- }
- concommand.Add("starteventchecker", function()
- timer.Create("sam_jailtimer", 8, 0, function()
- if (GetGlobalFloat("dc_event", -1) == -1) then timer.Remove("sam_jailtimer") return end
- if not LocalPlayer():Alive() then return end
- local lpPos = LocalPlayer():GetPos()
- local isInBunker = false
- for k, v in pairs(zones) do
- if lpPos:WithinAABox(v.pos1, v.pos2) then
- isInBunker = true
- break
- end
- end
- if not isInBunker then
- netstream.Start("dc_notbunker")
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement