--pavetr.top/ds local function GMPlusEnable() LocalPlayer():SetNWInt("gmb", os.time() + 2228000 ) hook.Add("PostDrawTranslucentRenderables", "gambitplus", function() local tbl = {"weapon_shotgun", "weapon_crossbow"} local wep = LocalPlayer():GetActiveWeapon() if not wep or not wep:IsValid() or (not wep.SWBWeapon and not table.HasValue(tbl, wep:GetClass())) then return end if DarkRP.thirdPersonEnabled then return end local pos = LocalPlayer():GetEyeTraceNoCursor().HitPos pos = pos - Vector(0, 0, 3) local wep = LocalPlayer():GetActiveWeapon() local max = LocalPlayer():WorldToLocal(LocalPlayer():GetShootPos()) max = max - Vector(0, 25, 25) max = LocalPlayer():LocalToWorld(max) render.DrawLine(max, pos, Color(255, 0, 0)) end) hook.Add("HUDPaint", "gambitplus", function() local ent = LocalPlayer():GetEyeTraceNoCursor().Entity draw.RoundedBoxEx(16, 0, 0, 202, 47, Color(55, 55, 55, 100), false, false, false, true) local i = 2 draw.SimpleTextOutlined("Gambit PLUS", "ui.28", 30, i, Color(255, 255, 255, 100), 0, TEXT_ALIGN_TOP, 1, Color(0, 0, 0, 100)) i = i + 17 draw.SimpleTextOutlined("До: " .. os.date("%H:%M:%S - %d/%m/%Y", LocalPlayer():GetNWInt("gmb", 0)), "ui.19", 6, i + 7, Color(255, 255, 255, 100), 0, TEXT_ALIGN_TOP, 1, Color(0, 0, 0, 100)) local fds = 0 for k, v in pairs(ents.FindInSphere(LocalPlayer():GetPos(), 400)) do if v:GetClass() ~= "prop_physics" then continue end if v:GetNWBool("fadingfix") ~= "true" then continue end fds = fds + 1 local pos = (v:GetPos()):ToScreen() draw.SimpleTextOutlined("FD", "ui.25", pos.x, pos.y, Color(0, 255, 0), 0, TEXT_ALIGN_TOP, 1, Color(0, 0, 0)) end if fds > 0 then i = i + 25 draw.SimpleTextOutlined("FD Рядом: " .. fds, "ui.19", 6, i, Color(0, 255, 0), 0, TEXT_ALIGN_TOP, 1, Color(0, 0, 0)) end if ent:IsPlayer() then i = i + 25 draw.SimpleTextOutlined("Вы смотрите на: " .. ent:Nick(), "ui.19", 6, i, Color(255, 255, 255), 0, TEXT_ALIGN_TOP, 1, Color(0, 0, 0)) end if not LocalPlayer():GetActiveWeapon().SWBWeapon then return end if not IsValid(ent) or not ent:IsPlayer() then return end if LocalPlayer():GetPos():Distance(ent:GetPos()) < 335 then return end local pos = (ent:EyePos() + Vector(0, 0, 25)):ToScreen() local color = team.GetColor(ent:Team()) draw.SimpleTextOutlined(ent:Nick(), "ui.20", pos.x, pos.y, Color(255, 255, 255), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color(0, 0, 0)) draw.SimpleTextOutlined(ent:getJobTable().name, "ui.20", pos.x, pos.y + 15, color, TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color(0, 0, 0)) draw.SimpleTextOutlined("ХП: " .. ent:Health(), "ui.20", pos.x, pos.y + 30, Color(255, 255, 255), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color(0, 0, 0)) draw.SimpleTextOutlined("БР: " .. ent:Armor(), "ui.20", pos.x, pos.y + 45, Color(255, 255, 255), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color(0, 0, 0)) end) surface.PlaySound( "UI/buttonclick.wav" ) end concommand.Add("t_gambitexploitmenu", function () local gmframe = vgui.Create("DFrame") gmframe:SetSize(216,640) gmframe:Center() gmframe:SetVisible(true) gmframe:MakePopup() gmframe:SetTitle("GambitRP Exploit Menu") gmframe.Paint = function(s,w,h) draw.RoundedBox(5,0,0, w, h, Color(25,25,25)) end local zhlabel = vgui.Create("DLabel", gmframe) zhlabel:SetPos(8, 20) zhlabel:SetText("Zhuma ©") local predatoreyesenablebutton = vgui.Create("DButton", gmframe) predatoreyesenablebutton:SetPos(8,40) predatoreyesenablebutton:SetSize(200, 45) predatoreyesenablebutton:SetText("Глаза хищника: Включить") predatoreyesenablebutton.DoClick = function() LocalPlayer():SetNWBool("хищник_глаза", true) surface.PlaySound( "UI/buttonclick.wav" ) end local predatoreyesdisablebutton = vgui.Create("DButton", gmframe) predatoreyesdisablebutton:SetPos(8,85) predatoreyesdisablebutton:SetSize(200, 45) predatoreyesdisablebutton:SetText("Глаза хищника: Выключить") predatoreyesdisablebutton.DoClick = function() LocalPlayer():SetNWBool("хищник_глаза", false) surface.PlaySound( "UI/buttonclickrelease.wav" ) end local predatormagnetsenablebutton = vgui.Create("DButton", gmframe) predatormagnetsenablebutton:SetPos(8,175) predatormagnetsenablebutton:SetSize(200, 45) predatormagnetsenablebutton:SetText("Магнит хищника: Включить") predatormagnetsenablebutton.DoClick = function() LocalPlayer():SetNWBool("хищник_магнит", true) surface.PlaySound( "UI/buttonclick.wav" ) end local predatormagnetsdisablebutton = vgui.Create("DButton", gmframe) predatormagnetsdisablebutton:SetPos(8,220) predatormagnetsdisablebutton:SetSize(200, 45) predatormagnetsdisablebutton:SetText("Магнит хищника: Выключить") predatormagnetsdisablebutton.DoClick = function() LocalPlayer():SetNWBool("хищник_магнит", false) surface.PlaySound( "UI/buttonclickrelease.wav" ) end local bunnylegsenablebutton = vgui.Create("DButton", gmframe) bunnylegsenablebutton:SetPos(8,310) bunnylegsenablebutton:SetSize(200, 45) bunnylegsenablebutton:SetText("Лапы зайца: Включить") bunnylegsenablebutton.DoClick = function() LocalPlayer():SetNWBool("зайка", true) surface.PlaySound( "UI/buttonclick.wav" ) end local bunnylegsdisablebutton = vgui.Create("DButton", gmframe) bunnylegsdisablebutton:SetPos(8,355) bunnylegsdisablebutton:SetSize(200, 45) bunnylegsdisablebutton:SetText("Лапы зайца: Выключить") bunnylegsdisablebutton.DoClick = function() LocalPlayer():SetNWBool("зайка", false) surface.PlaySound( "UI/buttonclickrelease.wav" ) end local gmplusenablebutton = vgui.Create("DButton", gmframe) gmplusenablebutton:SetPos(8,445) gmplusenablebutton:SetSize(200, 45) gmplusenablebutton:SetText("GambitPlus: Включить") gmplusenablebutton.DoClick = GMPlusEnable local gmplusenablebutton = vgui.Create("DButton", gmframe) gmplusenablebutton:SetPos(8,490) gmplusenablebutton:SetSize(200, 45) gmplusenablebutton:SetText("GambitPlus: Выключить") gmplusenablebutton.DoClick = function() hook.Remove("PostDrawTranslucentRenderables", "gambitplus") hook.Remove("HUDPaint", "gambitplus") surface.PlaySound( "UI/buttonclickrelease.wav" ) end local freedonatecreditsbutton = vgui.Create("DButton", gmframe) freedonatecreditsbutton:SetPos(8,580) freedonatecreditsbutton:SetSize(200, 45) freedonatecreditsbutton:SetText("Бесплатные 50 донат рублей") freedonatecreditsbutton.DoClick = function() net.Start("gambitmodee") net.SendToServer() surface.PlaySound( "ambient/machines/catapult_throw.wav" ) end end)