Advertisement
CREONIX

JAILBREAK DARKRP LUA SCTIPT

Jan 2nd, 2017 (edited)
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. /*
  2.  
  3.     Хук побег из тюрьмы
  4.  
  5.     Создать файл sv_jail.lua кинуть в autorun/server
  6.  
  7. */
  8.  
  9. local StartJailZone = Vector(-14.354713, -1638.519775, -115.556763)
  10. local EndJailZone = Vector(717.475830, -1043.719604, 512.386230)
  11.  
  12. local Reason = "Побег из тюрьмы" -- Тут причина розыска когда человек сбегает из тюрьмы
  13. local JailTime = 500 -- Тут время розыска в секундах
  14.  
  15. hook.Add("PlayerTick","JailBreakDarkRP",function(ply)
  16.  
  17.     local PlayerInJail = false
  18.  
  19.     if ply:GetPos():WithinAABox(StartJailZone,EndJailZone) then
  20.  
  21.         PlayerInJail = true
  22.  
  23.     end
  24.  
  25.     if !PlayerInJail and ply:isArrested() then
  26.  
  27.         ply:setDarkRPVar("Arrested",nil)
  28.  
  29.         hook.Call("PlayerLoadout",GAMEMODE,ply)
  30.  
  31.         ply:wanted(nil,Reason,JailTime)
  32.  
  33.         ply:ChatPrint("[Побег из тюрьмы] - Вы сбежали, теперь вы розыске!")
  34.  
  35.     end
  36.  
  37. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement