CowTurbo Posted May 1, 2011 Posted May 1, 2011 How to setPlayerNametagColor using html code ? ( #FF00FF Will be pink, #FF0000 will be red... ? )
#Paper Posted May 1, 2011 Posted May 1, 2011 It's hard to script... i can sell you this script for 15€ I have it in my server: International Racing Server
DakiLLa Posted May 1, 2011 Posted May 1, 2011 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?
#Paper Posted May 1, 2011 Posted May 1, 2011 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? Oh i thought that he wanted to make the nametags over players in multi color...
Castillo Posted May 1, 2011 Posted May 1, 2011 You can't sell an script which you taked from the forums (I know you'd), even worst, for 15 euros.
CowTurbo Posted May 2, 2011 Author Posted May 2, 2011 Dakilla! Whaazaa, its going nicely Thx for script =) its nice to hear that you still scripting =D
#Paper Posted May 2, 2011 Posted May 2, 2011 You can't sell an script which you taked from the forums (I know you'd), even worst, for 15 euros. I didn't take this script from the forum... -.-"
Castillo Posted May 2, 2011 Posted May 2, 2011 I won't start a fight, but, i'm 100% sure you did Btw, a moderator should lock the topic, else it will end into a fight (I guess ).
#Paper Posted May 3, 2011 Posted May 3, 2011 i'm 100% sure you did Good for you... Btw, yes, a mod should close this topic
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now