Jump to content

Joinquit - Quit Reasons


t3wz

Recommended Posts

@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
@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 :mrgreen:

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...