//_Dragon Posted December 15, 2015 Posted December 15, 2015 Hey , i want add namecolor player in this script like when player namecolor has color blue when he talk to chat his name blue will be showing with the color blue function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) outputChatBox("(Local) "..name..": #ffffff"..message, getRootElement(), 255, 255, 255, true) end addCommandHandler("Local", globalMessage)
#RooTs Posted December 15, 2015 Posted December 15, 2015 thy this function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) local r, g, b = getTeamColor(thePlayer) outputChatBox("(Local) "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage)
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 thy this function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) local r, g, b = getTeamColor(thePlayer) outputChatBox("(Local) "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage) Not working dude help ?
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 (edited) Debugscript problem in GetPlayerNametagColor http://imgur.com/WZ5fBPD function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) local r,g,b = getPlayerNametagColor (player) outputChatBox("(Local) "..name..": #ffffff"..message, getRootElement(), r, g, b, true ) end addCommandHandler("Local", globalMessage) Edited December 15, 2015 by Guest
#RooTs Posted December 15, 2015 Posted December 15, 2015 maybe that, and maybe definition "Source or thePlayer" function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(source) local r,g,b = getPlayerNametagColor ( source ) -- add outputChatBox("[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage)
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 maybe that, and maybe definition "Source or thePlayer" function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(source) local r,g,b = getPlayerNametagColor ( source ) -- add outputChatBox("[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage) Bro ur code is not working mine is working Only i have problem in getPlayerNameTagcolor i hope some one fixe it
killeryoyo Posted December 15, 2015 Posted December 15, 2015 function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) local r,g,b = getPlayerNametagColor ( thePlayer ) -- add outputChatBox("[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage) try this maybe it can work
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) local r,g,b = getPlayerNametagColor ( thePlayer ) -- add outputChatBox("[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage) try this maybe it can work Work perfect thanks but i want add color in [local] like Ex : #FF0000[Local] "..name.." but when i do it nameplayer too has taked the color ( red #FF0000 )
killeryoyo Posted December 15, 2015 Posted December 15, 2015 function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) local r,g,b = getPlayerNametagColor ( thePlayer ) -- add outputChatBox("[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage) try this maybe it can work Work perfect thanks but i want add color in [local] like Ex : #FF0000[Local] "..name.." but when i do it nameplayer too has taked the color ( red #FF0000 ) outputChatBox("[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true) check this out again maybe the wrong is there
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 No problem is there just i want add color in [Local] with out adding any color in ( "..name.." ) u understand dude ?
#RooTs Posted December 15, 2015 Posted December 15, 2015 (edited) maybe is possible ? local r,g,b = getPlayerNametagColor ( thePlayer ) -- add local color = r,g,b outputChatBox("#ffffff[Local]"..color..""..name..": #ffffff"..message, getRootElement(), r, g, b, true) is possible? Edited December 15, 2015 by Guest
killeryoyo Posted December 15, 2015 Posted December 15, 2015 No problem is there just i want add color in [Local] with out adding any color in ( "..name.." ) u understand dude ? i dont think its possible
killeryoyo Posted December 15, 2015 Posted December 15, 2015 The only thing that is possible is to let the local be the same color as the player color, but random color no
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 (edited) Nah dude Edited December 15, 2015 by Guest
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 The only thing that is possible is to let the local be the same color as the player color, but random color no But dude i join server & i see the owner has make the [local] with color yellow & nametagplayer it's different u wanna see pic ?
killeryoyo Posted December 15, 2015 Posted December 15, 2015 function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local chat = "[Local]" 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) try this one maybe it could work
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local chat = "[Local]" 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) try this one maybe it could work tagplayername has changed to red too
killeryoyo Posted December 15, 2015 Posted December 15, 2015 function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local chat = "[Local]" 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) try this one maybe it could work tagplayername has changed to red too 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) try now i wont leave you till i solve it
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 Doesnt worke bro Nametagcolor take same color's [local]
killeryoyo Posted December 15, 2015 Posted December 15, 2015 Doesnt worke bro Nametagcolor take same color's [local] 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)
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local chat = "#FF0000[Local]" local name = getPlayerName(thePlayer) local r,g,b = getPlayerNametagColor ( thePlayer ) outputChatBox(" "#FF0000[Local]" "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage) debuscript 3 : Loading script failed: Local\server.lua:6: ')' expected near '#' Problem with ")" i think :3 help ?
killeryoyo Posted December 15, 2015 Posted December 15, 2015 function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local chat = "#FF0000[Local]" local name = getPlayerName(thePlayer) local r,g,b = getPlayerNametagColor ( thePlayer ) outputChatBox(" "#FF0000[Local]" "..name..": #ffffff"..message, getRootElement(), r, g, b, true) end addCommandHandler("Local", globalMessage) debuscript 3 : Loading script failed: Local\server.lua:6: ')' expected near '#' Problem with ")" i think :3 help ? try the new one i posted.
//_Dragon Posted December 15, 2015 Author Posted December 15, 2015 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) Nah doesnt work it show only nametag player
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