K4stic Posted May 21, 2013 Share Posted May 21, 2013 (edited) 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 May 21, 2013 by Guest Link to comment
iPrestege Posted May 21, 2013 Share Posted May 21, 2013 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
K4stic Posted May 21, 2013 Author Share Posted May 21, 2013 realy was so easy? feeling so noob -.-" but thx Link to comment
iPrestege Posted May 21, 2013 Share Posted May 21, 2013 You're welcome next time read the wiki page . 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