lsft/modules/client/cl_admin.txt

26 lines
No EOL
759 B
Text

--@name
--@author
--@client
do
blind = nil
net.receive("LSFT-SBlind", function()
if net.readEntity() == player() then
if holograms.canSpawn() then
--print(holograms.hologramsLeft())
blind = holograms.create(eyePos()-Vector(0,0,45), Angle(0,0,0), "models/holograms/hq_sphere.mdl", Vector(-5,5,5))
blind:setParent(player(), player():lookupAttachment("chest"))
blind:setColor(Color(0,0,0))
blind:suppressEngineLighting(true)
end
end
end)
net.receive("LSFT-SUnblind", function()
if net.readEntity() == player() and blind ~= nil then
blind:remove()
blind = nil
end
end)
end