Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timer.Create('PlayerThink', 5, 0, function()
- local pls = player.GetAll()
- for i = 1, #pls do
- if IsValid(pls[i]) then
- hook.Call('PlayerThink', GAMEMODE, pls[i])
- end
- end
- end)
- function ENTITY:InBox(p1, p2)
- return self:GetPos():WithinAABox(p1, p2)
- end
- pozicia = {
- rp_downtown_tits_v1 = {Vector(-1921, 339, 355), Vector(-2522, 1149, -521)},
- rp_bangclaw = {Vector(3910.281250, -1145.437500, 328.000000),Vector(4482.062500, -377.562500, 64.343750)},
- rp_timeofeve_scp_ws = {Vector(266.125000, 1512.125000, 258.437500),Vector(1050.718750, 1829.125000, 118.562500)},
- }
- local bounds = pozicia[game.GetMap()]
- hook.Add('PlayerThink', 'siebalsa', function(pl)
- if IsValid(pl) and pl:isArrested() and (not pl:InBox(bounds[1], bounds[2])) then
- pl:setDarkRPVar("Arrested", nil)
- pl:wanted( pl, "Побег из тюрьмы", 600 )
- hook.Call('PlayerLoadout', GAMEMODE, pl)
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement