Есть проблема с джаил рум, при телепорте в джаил он должен ставить джоб BAN но он этого не делает и нужен скрипт на запрет использования любых команд на джобе БАН
function JailRoom(ply, reason, seconds, after_relog)
if ply.jailed == true then return end
ply.LastPos = ply:GetPos()
ply.jailed = true
ply.timer = seconds
ply.jail_reason = reason
timer.Simple(1,function ()
if not jailTeam == "" then
if not ply:Team() == jailTeam then
ply:changeTeam(jailTeam, true)
end
end
ply:GodEnable()
end)
ply:SetPos(jailPos)
ply:StripWeapons()
if timer.Exists(ply:UniqueID().."ulxJailTimer") then
timer.Remove(ply:UniqueID().."ulxJailTimer")
end
net.Start("ulxTakeJailInfo")
net.WriteBool(true)
net.WriteFloat(seconds)
net.WriteFloat(CurTime())
net.WriteString(reason)
net.Send(ply)
timer.Create(ply:UniqueID().."ulxJailTimer",seconds,1,function ()
if ply:IsValid() and after_relog == true then
UnJail(ply, true)
elseif ply:IsValid() then
UnJail(ply)
end
end)
end