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

See this script pls

Stewie

Family Guy # ;3
Joined
May 3, 2010
Messages
786
Reaction score
12
Location
TV
error:

LUA:
[06/08/2010 16:50:31] [Error - CreatureScript Interface] 
[06/08/2010 16:50:31] In a timer event called from: 
[06/08/2010 16:50:31] data/creaturescripts/scripts/antimc.lua:onLogin
[06/08/2010 16:50:31] Description: 
[06/08/2010 16:50:31] (internalGetPlayerInfo) Player not found when requesting player info #28

Script:
LUA:
local config = {
        max = 2,
        text = "Nao crie char com ' ,se criar voce nao consegui logar.",
        group_id = 1  -- it will only kick player whit that id (1=Players, 2=tutor, 3=seniortutors, 4=Gm's, 5=Cm's and 6=God's
}
local accepted_ip_list =""  -- here put the Ip you whant to be allowed to use Mc/Magebomb..
local function antiMC(p)
        if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then
                doRemoveCreature(p.pid)
        end
        return TRUE
end

function onLogin(cid)
        if getPlayerGroupId(cid) <= config.group_id then
                if isInArray(accepted_ip_list,getPlayerIp(cid)) == FALSE then
                        addEvent(antiMC, 1000, {pid = cid, max = config.max+1})
                        doPlayerPopupFYI(cid, config.text)
                end
        end
        return TRUE
end
 
LUA:
local config = {
    max = 2,
    text = 'Nao crie char com ,se criar voce nao consegui logar.',
    group_id = 1  -- it will only kick player whit that id (1=Players, 2=tutor, 3=seniortutors, 4=Gm's, 5=Cm's and 6=God's
}

local accepted_ip_list = '' -- here put the Ip you want to be allowed to use Mc/Magebomb..

function antiMC(cid, max)
    if not isPlayer(cid) then return true end
    local amount = getPlayersByIp(getPlayerIp(cid))
    if #amount >= max then
        for i = 1, #amount do
            doRemoveCreature(amount[i])
        end
    end
    return true
end

function onLogin(cid)
    if getPlayerGroupId(cid) <= config.group_id then
        if not isInArray(accepted_ip_list, getPlayerIp(cid)) then
            addEvent(antiMC, 1000, cid, config.max+1)
            doPlayerPopupFYI(cid, config.text)
        end
    end
    return true
end
 
Back
Top