Unnamed
public text v1 · immutable
function radiothink()
for _,v in pairs(player.GetAll()) do
local radios = nil
local entsx = ents.FindInSphere( v:GetPos(), 300 )
for _,i in pairs(entsx) do
if i:GetClass() == "ms_radio" then
table.Insert(radios, i)
end
end
if radios != nil then
v:SetNWBool( "radiorange", true )
else
v:SetNWBool( "radiorange", false )
end
end
end
hook.Add("Think","rthnk",radiothink)