• 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!

HELP! Block the MC only from a Client

adrianootavares

New Member
Joined
Jul 23, 2012
Messages
112
Reaction score
4
Location
Salvador - Bahia - Brasil
I wanted to block the MC only from CLIENT 10
I already have a script that blocks the MC but it blocks everyone I just wanted from the client 10

Lua:
local AccPorIp = 1

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
 
Solution
E
Lua:
local AccPorIp = 1

function onLogin(player)
    if player:getClient().version == 1000 then
        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
    end
 
    return true
end
Lua:
local AccPorIp = 1

function onLogin(player)
    if player:getClient().version == 1000 then
        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
    end
 
    return true
end
 
Solution
Back
Top Bottom