All pastes #339128 Raw Edit

Mine

public text v1 · immutable
·published 2007-02-03 21:44 UTC
rendered paste body
function radiothink()
local allplayers=player.GetAll()
	for i=1,table.getn(allplayers) do
		entsx=ents.FindInSphere(allplayers[i]:GetPos(),300)
		for i=1,table.getn(entsx) do
			if entsx[i]:GetClass()=="ms_radio" then
			allplayers[i]SetNetworkedBool("radiorange",true)
			// need to stop the false being set somehow HERE
			end
		end
		allplayers[i]SetNetworkedBool("radiorange",false)
	end
end
hook.Add("Think","rthnk",radiothink)