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

RevScripts anti mc

alcapone

Member
Joined
Jan 13, 2021
Messages
247
Reaction score
19
Lua:
function dadadada.onLogin(player)

    local playerId = player:getId()

    local playersOnline = Game.getPlayers()

    for _, pid in pairs(playersOnline) do
        local pip = getPlayerIp(pid)
            if cid ~= pid and getPlayerIp(cid) == pip and not isInArray(config.ignoreIps, Game.convertIpToString(getPlayerIp(cid))) then
             number = (number or 0) + 1
            if number > 1 then
                return false
            end
        end
    end

    if eventOnline[playerId] == nil then
      eventOnline[playerId] = addEvent(addOnlineItem, 1000, playerId)
        
    end
    return true
end

I'm having a problem with the anti mc check even though I have 3 mc online the eventOnline is running
 
Back
Top