Jump to content

Name


Recommended Posts

It's hard to script...

Lol, are you laughing? This is just ~10 lines of code I can give for free.

_setPlayerNametagColor = setPlayerNametagColor; 
  
function setPlayerNametagColor( thePlayer, hex ) 
  if isElement( thePlayer ) then 
    _setPlayerNametagColor( thePlayer, hexToRGB( hex ) ); 
  end; 
end; 
  
function hexToRGB( num ) 
  num = string.gsub( num, "#", "" ); 
  local r = tonumber( "0x" .. string.sub( num, 1, 2 ) ); 
  local g = tonumber( "0x" .. string.sub( num, 3, 4 ) ); 
  local b = tonumber( "0x" .. string.sub( num, 5, 6 ) ); 
  return r, g, b; 
end; 

p.s.: hey Cow, how it's going on? :D

Link to comment
It's hard to script...

Lol, are you laughing? This is just ~10 lines of code I can give for free.

_setPlayerNametagColor = setPlayerNametagColor; 
  
function setPlayerNametagColor( thePlayer, hex ) 
  if isElement( thePlayer ) then 
    _setPlayerNametagColor( thePlayer, hexToRGB( hex ) ); 
  end; 
end; 
  
function hexToRGB( num ) 
  num = string.gsub( num, "#", "" ); 
  local r = tonumber( "0x" .. string.sub( num, 1, 2 ) ); 
  local g = tonumber( "0x" .. string.sub( num, 3, 4 ) ); 
  local b = tonumber( "0x" .. string.sub( num, 5, 6 ) ); 
  return r, g, b; 
end; 

p.s.: hey Cow, how it's going on? :D

Oh i thought that he wanted to make the nametags over players in multi color...

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...