Someone
public text v1 · immutablefunction radiothink()
local allplayers=player.GetAll()
for i=1,table.getn(allplayers) do
entsx=ents.FindInSphere(allplayers[i]:GetPos(),300)
local winrar=0
for i=1,table.getn(entsx) do
if entsx[i]:GetClass()=="ms_radio" then
allplayers[i]:SetNetworkedBool("radiorange",true)
winrar=1
end
end
if winrar==0 then
allplayers[i]:SetNetworkedBool("radiorange",false)
end
end
end
hook.Add("Think","rthnk",radiothink)