Jump to content

Join Quit reasons


Mefisto_PL

Recommended Posts

I have this script, if you can fix this I will be very lucky :D

addEventHandler('onClientPlayerJoin', root, 
    function() 
        outputChatBox('>> ' .. getPlayerName(source) .. ' dołącza do gry !', 0, 159, 255) 
    end 
) 
  
addEventHandler('onClientPlayerChangeNick', root, 
    function(oldNick, newNick) 
        outputChatBox('>> ' .. oldNick .. ' zmienił nick na ' .. newNick, 0, 159, 255) 
    end 
) 
  
addEventHandler('onClientPlayerQuit', root, 
    function(reason) 
        outputChatBox('>> ' .. getPlayerName(source) .. ' opuścił serwer [' .. reason .. ']', 0, 159, 255) 
    end 
) 
  
reasontable =  
{ 
    ["Kicked"] = "Wyrzucony", 
    ["Quit"] = "Wyszedł", 
    ["Banned"] = "Zbanowany", 
    ["Bad Connection"] = "Błąd połaczenia", 
    ["Timed Out"] = "Rozłączono" 
} 

Link to comment
  
reason2 = " " 
  
addEventHandler('onClientPlayerJoin', root, 
    function() 
        outputChatBox('>> ' .. getPlayerName(source) .. ' dołącza do gry !', 0, 159, 255) 
    end 
) 
  
addEventHandler('onClientPlayerChangeNick', root, 
    function(oldNick, newNick) 
        outputChatBox('>> ' .. oldNick .. ' zmienił nick na ' .. newNick, 0, 159, 255) 
    end 
) 
  
addEventHandler('onClientPlayerQuit', root, 
    function(reason) 
if reason == "Quit" then 
     reason2 = "Wyszedł" 
elseif reason == "Kicked" then 
     reason2 = "Wyrzucony" 
elseif reason == "Banned" then 
    reason2 = "Zbanowany" then 
elseif reason == "Timed Out" then 
   reason2 = "Rozłączono" 
elseif reason == "Bad Connection" then 
   reason2 = "Błąd połaczenia" 
end 
        outputChatBox('>> ' .. getPlayerName(source) .. ' opuścił serwer [' .. reason2 .. ']', 0, 159, 255) 
    end 
) 
  
  

I think it will work.:D

Link to comment
  
reason2 = " " 
  
addEventHandler('onClientPlayerJoin', root, 
    function() 
        outputChatBox('>> ' .. getPlayerName(source) .. ' dołącza do gry !', 0, 159, 255) 
    end 
) 
  
addEventHandler('onClientPlayerChangeNick', root, 
    function(oldNick, newNick) 
        outputChatBox('>> ' .. oldNick .. ' zmienił nick na ' .. newNick, 0, 159, 255) 
    end 
) 
  
addEventHandler('onClientPlayerQuit', root, 
    function(reason) 
if reason == "Quit" then 
     reason2 = "Wyszedł" 
elseif reason == "Kicked" then 
     reason2 = "Wyrzucony" 
elseif reason == "Banned" then 
    reason2 = "Zbanowany" 
elseif reason == "Timed Out" then 
   reason2 = "Rozłączono" 
elseif reason == "Bad Connection" then 
   reason2 = "Błąd połaczenia" 
end 
        outputChatBox('>> ' .. getPlayerName(source) .. ' opuścił serwer [' .. reason2 .. ']', 0, 159, 255) 
    end 
) 
  
  

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