Jump to content

[need help] rgbCalculator


JKiller55

Recommended Posts

hi i need help with this code:

--Calc by Zipper: 
function calcRGBByHP ( player )
	local hp = getElementHealth ( player )
	if hp <= 0 then
		return 0, 0, 0
	else
		hp = math.abs ( hp - 0.01 )
		return ( 100 - hp ) * 2.55 / 2, ( hp * 2.55 ), 0
	end
end

i want this for hp AND Armor but i dont get it

BTW its for a anmetag script

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...