Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
local AccPorIp = 5
function onLogin(player)
local mc = 0
for _, verificar in ipairs(Game.getPlayers()) do
if player:getIp() == verificar:getIp() then
mc = mc + 1
if mc > AccPorIp then return false end
end
end
return true
end
You can use this script to set a max connection per ip. I wouldnt make it lower than 4 as sometimes theres 3-4 guys living together who all want to play.
Hey, it works but there is one thing, it shuts down the Client at start (without MC)
I mean the g_platform.isProcessRunning checks if proccess is running while you open the Client, is there any other option?
local AccPorIp = 5
function onLogin(player)
local mc = 0
for _, verificar in ipairs(Game.getPlayers()) do
if player:getIp() == verificar:getIp() then
mc = mc + 1
if mc > AccPorIp then return false end
end
end
return true
end
You can use this script to set a max connection per ip. I wouldnt make it lower than 4 as sometimes theres 3-4 guys living together who all want to play.
Hey, it works but there is one thing, it shuts down the Client at start (without MC)
I mean the g_platform.isProcessRunning checks if proccess is running while you open the Client, is there any other option?