• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need script - Fast

Vrotz

Member
Joined
Apr 7, 2011
Messages
1,071
Reaction score
7
Location
Brazil
I need an script to block the excessive loggin simultaneous of account managers on my server.
Im using console Tfs 0.3.7

Tks
 
Yes!
PHP:
local config = {
        max = 1,
        text = "Multi-Client or Magebomb is not allowed.",
        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 = 1,
	text = "Multi-Client or Magebomb is not allowed.",
	group_id = 1,
}

local accepted_ip_list = "127.0.0.1"  -- 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
 
I can put this IP local even? Like this, just the localhost will be able to have access to a "Magebomb"?

- - - Updated - - -

I remove this code of script
PHP:
local accepted_ip_list = "127.0.0.1" -- here put the Ip you whant to be allowed to use Mc/Magebomb..

So, the message "Magebomb is not allowed" inst appearing
 
Back
Top