All pastes #914603 Raw Edit

Someone

public text v1 · immutable
#914603 ·published 2008-02-23 00:46 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(Clamp(ply:Health()+2),0,100)
		
		self.DispensedHealth=self.DispensedHealth+2
		if self.DispensedHealth>100 then
			self.Entity:SetNetworkedBool("stale",true)
		end
	end
end