Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Хук побег из тюрьмы
- Создать файл sv_jail.lua кинуть в autorun/server
- */
- local StartJailZone = Vector(-14.354713, -1638.519775, -115.556763)
- local EndJailZone = Vector(717.475830, -1043.719604, 512.386230)
- local Reason = "Побег из тюрьмы" -- Тут причина розыска когда человек сбегает из тюрьмы
- local JailTime = 500 -- Тут время розыска в секундах
- hook.Add("PlayerTick","JailBreakDarkRP",function(ply)
- local PlayerInJail = false
- if ply:GetPos():WithinAABox(StartJailZone,EndJailZone) then
- PlayerInJail = true
- end
- if !PlayerInJail and ply:isArrested() then
- ply:setDarkRPVar("Arrested",nil)
- hook.Call("PlayerLoadout",GAMEMODE,ply)
- ply:wanted(nil,Reason,JailTime)
- ply:ChatPrint("[Побег из тюрьмы] - Вы сбежали, теперь вы розыске!")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement