Jump to content

Namecolor Player !


//_Dragon

Recommended Posts

Posted

this is the new one try this.

function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local chat = "#FF0000[Local]" 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox("..chat.. "..name..": #ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 

  • Replies 69
  • Created
  • Last Reply

Top Posters In This Topic

Posted
this is the new one try this.
function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local chat = "#FF0000[Local]" 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox("..chat.. "..name..": #ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 

lel why local chat?

function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox("#FF0000[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 

Posted
function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local chat = "#FF0000[Local]" 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox(chat.."..name.."#ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 
  
  
 

a new one try this.

Posted
this is the new one try this.
function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local chat = "#FF0000[Local]" 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox("..chat.. "..name..": #ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 

Wont worke dude look at the pic

http://imgur.com/1kPSpKv

Problem in outputchatbox i think :/

Posted
function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local chat = "#FF0000[Local]" 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox(chat.."..name.."#ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 
  
  
  
 

a new one try this.

Problem in debugscript with '#' or ')'

Posted
this is the new one try this.
function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local chat = "#FF0000[Local]" 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox("..chat.. "..name..": #ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 

Wont worke dude look at the pic

http://imgur.com/1kPSpKv

Problem in outputchatbox i think :/

This work.

function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox("#FF0000[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 

Posted
chat = "#FF0000[Local]" 
function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox("..chat.. "..name..": #ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 
  

thats the best i have try it :D.

Posted
chat = "#FF0000[Local]" 
function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox("..chat.. "..name..": #ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 
  

thats the best i have try it :D.

Lel it's showing in chatbox [ ..chat.. Oussez : Blabla ]

Posted
chat = "#FF0000[Local]" 
function globalMessage(thePlayer, cmd, ...) 
local message = table.concat ( { ... }, " " ) 
local name = getPlayerName(thePlayer) 
local r,g,b = getPlayerNametagColor ( thePlayer ) -- add 
outputChatBox("..chat.. "..name..": #ffffff"..message, getRootElement(), r, g, b, true) 
end 
addCommandHandler("Local", globalMessage) 
  

thats the best i have try it :D.

Stop say bad here..

if you want this

chat = "#FF0000[Local]

so

outputChatBox(""..chat.."" ..name..": #ffffff"..message, getRootElement(), r, g, b, true) 

Posted
it's showing in chatbox color red : [Local]Oussez : xD

to be honest i gave up. xD i can't solve this. let someone else do it idk why its doing like that. just accept it and do it with one color.

Posted
it's showing in chatbox color red : [Local]Oussez : xD

I get him examples. So now you must only wait if anyone help you.

to be honest i gave up. xD i can't solve this. let someone else do it idk why its doing like that. just accept it and do it with one color.

And stop say here if you don't know how can help him.

Posted (edited)
to be honest i gave up. xD i can't solve this. let someone else do it idk why its doing like that. just accept it and do it with one color.

Nah dude i want make it like this check this pic :arrowdown::arrowdown:

http://imgur.com/VSBsjSp

color yellow for [local] & other color for getplayernamecolor you see :(

Edited by Guest
Posted
Any help ?

nope. I guess i did my best, you have to wait someone then.

Wtf man stop post here if you don't know how you can help him. Your is best hahahaha your code is wrong and is best?

Posted
Well if you can convert the RGB to hex somehow, then it would be possible.

Dude go to my topic only staff can get car i do my script but didn't work go & see it ok ?

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