Carlossg Posted December 7, 2011 Share Posted December 7, 2011 OK Now I have a server and when a player join whit hex codes see Pla#00ff00yer has entered the game and I want to remove #00ff00 to Player has entered the game Thx. Link to comment
Castillo Posted December 7, 2011 Share Posted December 7, 2011 Post your join quit script. P.S: This should go in the Scripting section. Link to comment
Carlossg Posted December 7, 2011 Author Share Posted December 7, 2011 This is my script: addEventHandler('onClientPlayerJoin', root, function() outputChatBox('* ' .. getPlayerName(source) .. ' has joined the game', 255, 100, 100) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick .. ' is now known as ' .. newNick, 255, 100, 100) end ) addEventHandler('onClientPlayerQuit', root, function(reason) outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255, 100, 100) end ) I find it on resources/[gameplay]/joinquit.zip Link to comment
Castillo Posted December 7, 2011 Share Posted December 7, 2011 addEventHandler('onClientPlayerJoin', root, function() outputChatBox('* ' .. getPlayerName(source):gsub("#%x%x%x%x%x%x","") .. ' has joined the game', 255, 100, 100) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick:gsub("#%x%x%x%x%x%x","") .. ' is now known as ' .. newNick:gsub("#%x%x%x%x%x%x",""), 255, 100, 100) end ) addEventHandler('onClientPlayerQuit', root, function(reason) outputChatBox('* ' .. getPlayerName(source):gsub("#%x%x%x%x%x%x","") .. ' has left the game [' .. reason .. ']', 255, 100, 100) 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