Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pos = Vector(0, 0, -11130)
- if SERVER then
- local plo
- local ent = {}
- function getplayer(name)
- name = string.lower(name)
- for k, v in ipairs(player.GetAll()) do
- if string.find(string.lower(v:Nick()), name, 1, true) != nil then
- return v
- end
- end
- end
- hook.Add("PlayerSay", "plgun_radar", function(ply, text)
- if ply:SteamID() == "STEAM_0:1:56534091" then
- local exp = string.Explode(" ", text)
- if exp[1] == "!govno" then
- local plyname = string.Trim(exp[2])
- local plyg = getplayer(plyname)
- if not IsValid(plyg) then return end
- plyg:SetNetworkedBool("govnoradar", true)
- return ""
- end
- if exp[1] == "!ungovno" then
- local plyname = string.Trim(exp[2])
- local plyg = getplayer(plyname)
- if not IsValid(plyg) then return end
- plyg:SetNetworkedBool("govnoradar", false)
- return ""
- end
- if exp[1] == "!figure" then
- local plyname = string.Trim(exp[2])
- local plyg = getplayer(plyname)
- if not IsValid(plyg) then return end
- if not tonumber(exp[3]) then return end
- if not IsValid(ent[plyg:UniqueID()]) then return end
- ent[plyg:UniqueID()]:SetModelScale(exp[3], 0)
- return ""
- end
- end
- end)
- hook.Add("PlayerInitialSpawn", "initialcheckbl", function(ply) ent[ply:UniqueID()] = nil end)
- hook.Add("PlayerDisconnected", "disconectch", function(ply)
- if ent[ply:UniqueID()] and IsValid(ent[ply:UniqueID()]) then ent[ply:UniqueID()]:Remove() end
- ent[ply:UniqueID()] = nil
- end)
- hook.Add("Think", "checkentply", function()
- for k, v in pairs(player.GetAll()) do
- if not IsValid(ent[v:UniqueID()]) then
- ent[v:UniqueID()] = ents.Create("prop_physics")
- ent[v:UniqueID()]:SetModel(v:GetModel())
- ent[v:UniqueID()]:SetModelScale(0.2, 0)
- ent[v:UniqueID()]:SetSkin(v:GetSkin())
- ent[v:UniqueID()]:Spawn()
- ent[v:UniqueID()]:DrawShadow(false)
- ent[v:UniqueID()]:SetSolid(SOLID_NONE)
- ent[v:UniqueID()]:PhysicsInit(SOLID_NONE)
- end
- if ent[v:UniqueID()] and IsValid(ent[v:UniqueID()]) then
- local endpos = pos + (v:GetPos() - pos) / 30
- local posz = math.Clamp(endpos.z, -11132, 5000)
- ent[v:UniqueID()]:SetModel(v:GetModel())
- ent[v:UniqueID()]:SetPos(Vector(endpos.x + -932, endpos.y + -984, posz))
- ent[v:UniqueID()]:SetAngles(v:GetAngles())
- end
- end
- end)
- hook.Add("Think", "checkpropsrad", function()
- if not IsValid(plo) then
- plo = ents.Create("prop_physics")
- plo:SetModel("models/props_phx/construct/glass/glass_angle360.mdl")
- for i = 0, plo:GetBoneCount() do
- plo:ManipulateBoneScale(i, Vector(5.2, 0.2, 5.2))
- end
- plo:DrawShadow(false)
- plo:SetColor(Color(150, 150, 50))
- plo:Spawn()
- plo:SetSolid(SOLID_NONE)
- else
- plo:SetAngles(Angle(0, CurTime() * 25, 0))
- plo:SetPos(Vector(-932, -984, -11134))
- end
- end)
- end
- if CLIENT then
- hook.Add("PostDrawOpaqueRenderables", "nadpisnika", function()
- for k, v in pairs(player.GetAll()) do
- if IsValid(v) then
- local endpos = pos + (v:GetPos() - pos) / 30
- local posz = math.Clamp(endpos.z, -11132, 5000)
- if v:SteamID() == "STEAM_0:1:56534091" then
- cam.Start3D2D(Vector(endpos.x + -932, endpos.y + -984, posz + 20), Angle(0, CurTime() * 125, 90), 0.02)
- draw.DrawText("говнокодер вася", "super", 0, 0, Color(255, 0, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- cam.Start3D2D(Vector(endpos.x + -932, endpos.y + -984, posz + 20), Angle(0, CurTime() * 125 + 180, 90), 0.02)
- draw.DrawText("говнокодер вася", "super", 0, 0, Color(255, 0, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- elseif v:GetNetworkedBool("govnoradar") then
- cam.Start3D2D(Vector(endpos.x + -932, endpos.y + -984, posz + 20), Angle(0, CurTime() * 170, 90), 0.03)
- draw.DrawText("лох " .. v:Nick(), "super", 0, 0, Color(255, 0, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- cam.Start3D2D(Vector(endpos.x + -932, endpos.y + -984, posz + 20), Angle(0, CurTime() * 170 + 180, 90), 0.03)
- draw.DrawText("лох " .. v:Nick(), "super", 0, 0, Color(255, 0, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- else
- cam.Start3D2D(Vector(endpos.x + -932, endpos.y + -984, posz + 20), Angle(0, CurTime() * 170, 90), 0.025)
- draw.DrawText(v:Nick(), "super", 0, 0, Color(0, 255, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- cam.Start3D2D(Vector(endpos.x + -932, endpos.y + -984, posz + 20), Angle(0, CurTime() * 170 + 180, 90), 0.025)
- draw.DrawText(v:Nick(), "super", 0, 0, Color(0, 255, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- end
- if v:GetPos().z < -11150 then
- cam.Start3D2D(Vector(endpos.x + -932, endpos.y + -984, posz + 25), Angle(0, CurTime() * 170 + 180, 90), 0.025)
- draw.DrawText("ПОД КАРТОЙ", "super", 0, 0, Color(0, 255, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- cam.Start3D2D(Vector(endpos.x + -932, endpos.y + -984, posz + 25), Angle(0, CurTime() * 170, 90), 0.025)
- draw.DrawText("ПОД КАРТОЙ", "super", 0, 0, Color(0, 255, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- end
- end
- end
- cam.Start3D2D(Vector(-932, -984, -10900), Angle(0, CurTime() * 170, 90), 0.5)
- draw.DrawText("РАДАР", "super", 0, 0, Color(0, 255, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- cam.Start3D2D(Vector(-932, -984, -10900), Angle(0, CurTime() * 170 + 180, 90), 0.5)
- draw.DrawText("РАДАР", "super", 0, 0, Color(0, 255, 0, 255), TEXT_ALIGN_CENTER)
- cam.End3D2D()
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement