All pastes #339136 Raw Edit

Someone

public text v1 · immutable
·published 2007-02-03 21:51 UTC
rendered paste body
function 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)