mr.Extreme Posted October 31, 2013 Share Posted October 31, 2013 شباااب انا عندي مشكلة لون لية ما يلون مثلا انا لون اسمي اسود بس ما يظهر اسمي لون اسود ./me بيظهر لون اخضر addEventHandler("onPlayerChat", root, function(msg, msgType) if msgType == 1 then cancelEvent() local r, g, b = getPlayerNametagColor ( source ) local name = getPlayerName(source) local name = r, g, b outputChatBox("#1EA620* "..name..": #1EA620"..msg, getRootElement(), r, g, b,true) end end) Link to comment
mr.Extreme Posted October 31, 2013 Author Share Posted October 31, 2013 سطر 7 و 6 ؟؟؟ اسف انا كنت اعدل ما عرفت Link to comment
TAPL Posted October 31, 2013 Share Posted October 31, 2013 جرب addEventHandler("onPlayerChat", root, function(msg, msgType) if msgType == 1 then cancelEvent() local r, g, b = getPlayerNametagColor ( source ) local name = getPlayerName(source) local color = string.format("#%.2X%.2X%.2X", r, g, b) outputChatBox("#1EA620* "..color..name..": #1EA620"..msg, getRootElement(), r, g, b, true) end end) Link to comment
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