Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. timer.Create('PlayerThink', 5, 0, function()
  2. local pls = player.GetAll()
  3. for i = 1, #pls do
  4. if IsValid(pls[i]) then
  5. hook.Call('PlayerThink', GAMEMODE, pls[i])
  6. end
  7. end
  8. end)
  9.  
  10. function ENTITY:InBox(p1, p2)
  11. return self:GetPos():WithinAABox(p1, p2)
  12. end
  13. pozicia = {
  14. rp_downtown_tits_v1 = {Vector(-1921, 339, 355), Vector(-2522, 1149, -521)},
  15. rp_bangclaw = {Vector(3910.281250, -1145.437500, 328.000000),Vector(4482.062500, -377.562500, 64.343750)},
  16. rp_timeofeve_scp_ws = {Vector(266.125000, 1512.125000, 258.437500),Vector(1050.718750, 1829.125000, 118.562500)},
  17. }
  18. local bounds = pozicia[game.GetMap()]
  19.  
  20. hook.Add('PlayerThink', 'siebalsa', function(pl)
  21. if IsValid(pl) and pl:isArrested() and (not pl:InBox(bounds[1], bounds[2])) then
  22. pl:setDarkRPVar("Arrested", nil)
  23. pl:wanted( pl, "Побег из тюрьмы", 600 )
  24. hook.Call('PlayerLoadout', GAMEMODE, pl)
  25. end
  26. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement