Jump to content

Color's


K4stic

Recommended Posts

addEventHandler('onClientPlayerJoin', root, 
    function() 
        outputChatBox('* ' .. getPlayerName(source) .. ' has joined the game', 255, 255, 255) 
    end 
) 
  
addEventHandler('onClientPlayerChangeNick', root, 
    function(oldNick, newNick) 
        outputChatBox('* ' .. oldNick .. ' is now known as ' .. newNick, 255, 255, 255) 
    end 
) 
  
addEventHandler('onClientPlayerQuit', root, 
    function(reason) 
        outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255, 255, 255) 
    end 
) 

this is by default JoinQuit

i wonna to the players name if that player have color nick to show it

now showing it: #000000Tram#454545zelo

to show it: Tramzelo

Edited by Guest
Link to comment

Just add 'true' At the last argument of the out chat box function :

addEventHandler('onClientPlayerJoin', root, 
    function() 
        outputChatBox('* ' .. getPlayerName(source) .. ' has joined the game', 255, 255, 255,true) 
    end 
) 
  
addEventHandler('onClientPlayerChangeNick', root, 
    function(oldNick, newNick) 
        outputChatBox('* ' .. oldNick .. ' is now known as ' .. newNick, 255, 255, 255,true) 
    end 
) 
  
addEventHandler('onClientPlayerQuit', root, 
    function(reason) 
        outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255, 255, 255,true) 
    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...