All pastes #339144 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-03 21:58 UTC
rendered paste body

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)