Carlossg Posted December 7, 2011 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.
Castillo Posted December 7, 2011 Posted December 7, 2011 Post your join quit script. P.S: This should go in the Scripting section. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Carlossg Posted December 7, 2011 Author 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
Castillo Posted December 7, 2011 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 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted December 8, 2011 Posted December 8, 2011 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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