Jump to content

getPlayerNameTage


Recommended Posts

شباااب انا عندي مشكلة

لون لية ما يلون مثلا

انا لون اسمي اسود

بس ما يظهر اسمي لون اسود

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

جرب

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

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