All pastes #915658 Raw Edit

Someone

public text v1 · immutable
#915658 ·published 2008-02-23 23:28 UTC
rendered paste body
function ENT:Use(ply)
	if self.Entity:GetNetworkedBool("stale",false)==true then return end
	if ply:Health()<100 and ply~=self.Spawner then
		ply:SetHealth(math.Clamp(ply:Health()+2),0,100)
		
		self.DispensedHealth=self.DispensedHealth+2
		if self.DispensedHealth>100 then
			self.Entity:SetNetworkedBool("stale",true)
		end
	end
end