t3wz Posted November 20, 2013 Share Posted November 20, 2013 (edited) ---- Edited August 16, 2015 by Guest Link to comment
ViRuZGamiing Posted November 20, 2013 Share Posted November 20, 2013 Maybe use playerName = getPlayerName(source) function reason outputChatbox("player:" ..playerName.. "has disconnected") end addEventHandler("onPlayerQuit", source, reason) I'm a noob I just try to help if it's wrong i'll guess you'll get what I ment then. Link to comment
TAPL Posted November 20, 2013 Share Posted November 20, 2013 @DuH, your code should work, however this is better way to do it: Reasons = { ["Unknown"] = "Unknown", ["Quit"] = "Vontade Pr?pria", ["Kicked"] = "Kickado", ["Banned"] = "Banido", ["Timed Out"] = "Sem Conex?o", ["Bad Connection"] = "Bad Connection" } addEventHandler("onClientPlayerQuit", root, function(reason) outputChatBox("#ff0000*[iNFO] #ffffff"..getPlayerName(source).." #ffffffSaiu do Servidor #ff0000["..Reasons[reason].."]", 0, 159, 255, true) end) Link to comment
t3wz Posted November 20, 2013 Author Share Posted November 20, 2013 @DuH, your code should work, however this is better way to do it: Reasons = { ["Unknown"] = "Unknown", ["Quit"] = "Vontade Pr?pria", ["Kicked"] = "Kickado", ["Banned"] = "Banido", ["Timed Out"] = "Sem Conex?o", ["Bad Connection"] = "Bad Connection" } addEventHandler("onClientPlayerQuit", root, function(reason) outputChatBox("#ff0000*[iNFO] #ffffff"..getPlayerName(source).." #ffffffSaiu do Servidor #ff0000["..Reasons[reason].."]", 0, 159, 255, true) end) Thanks,Work 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