Skip to content

Commit

Permalink
No dying when frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
FPtje committed Oct 22, 2016
1 parent c37ad09 commit 5b9dfbb
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -73,8 +73,7 @@ FAdmin.StartHooks["Freeze"] = function()
FAdmin.Access.AddPrivilege("Freeze", 2)
end

hook.Add("PlayerSpawnObject", "FAdmin_jail", function(ply)
if ply:FAdmin_GetGlobal("FAdmin_frozen") then
return false
end
end)
local disallow = function(ply) if ply:FAdmin_GetGlobal("FAdmin_frozen") then return false end end

hook.Add("PlayerSpawnObject", "FAdmin_jail", disallow)
hook.Add("CanPlayerSuicide", "FAdmin_jail", disallow)

0 comments on commit 5b9dfbb

Please sign in to comment.