Jump to content

Namecolor Player !


//_Dragon

Recommended Posts

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) 

Link to comment
  • Replies 69
  • Created
  • Last Reply

Top Posters In This Topic

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) 

Link to comment
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.

Link to comment
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 :/

Link to comment
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 ')'

Link to comment
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) 

Link to comment
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.

Link to comment
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 ]

Link to comment
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) 

Link to comment
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.

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