+ флудят подключениями. ;(
(долго дуплил почему соединение ВНЕЗАПНО разрывается)
защита примерн так выглядит:
Код:
local _allow_connection = true -- Connection's flooding protection
-- ============================================================================
--
function L2EstablishConnection(ID, ip, port)
-- L2.theonline.ru x13 Game server
if ip == "188.72.217.14" and port == "7777" and _allow_connection == true then
_allow_connection = false
.....................
end
return ip, port
end
--
-- ============================================================================
--
function L2CloseConnection(ID)
if ID == TargetServerID and _allow_connection == false then
_allow_connection = true
.....................
end
end
--