Jump to content

Help


anksel

Recommended Posts

if the player have tag XX the name of player will be cyan color?

if it's:

addEventHandler('onPlayerJoin',root, 
 function() 
  if string.find(getPlayerName(source),'XX') then 
   setPlayerName(source,'#99ffffXX|'..getPlayerFromName(source)) 
  end 
end) 

I think it's wrong and I don't know if it's possible to change the player name color.

Link to comment

Try this:

addEventHandler('onPlayerChat',root, 
    function (msg, msgType) 
        if (msgType == 0 and string.find(getPlayerName(source),'XX|')) then 
            outputChatBox(getPlayerName(source) ..": #FFFFFF".. msg,root,0,255,255,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...