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.