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

Anti-Mage Bomb?

Fragdonut

Banned User
Joined
Jul 27, 2009
Messages
2,606
Reaction score
0
Location
HDUXZZZ13387
Hello! I need a script for magebomb protection, I saw different scripts but they doesn't seems to work, I'm using TFS 0.3.5
What should I do?
 
2ugkzm9.png

that makes lagg also <_<
so any ideas what I should do?
 
Well I need anti mage bomb cuz I have ot of war whit chars "Elder Druid", "Master Sorcerer" etc... Alot of ppl make mage bomb =/
 
--[[
Anti MC
by Shawak
]]--

local config = {
max = 1, <<<<<<<<<<<<<<<<<<<<<<<<<<<<< how much players whit same ip
text = "Multi-Client or Magebomb is not allowed so fuck off noob.",
group_id = 1 -- only kick player with group id 1 (normal players)
}

local accepted_ip_list =""

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
 
--[[
Anti MC
by Shawak
]]--

local config = {
max = 1, <<<<<<<<<<<<<<<<<<<<<<<<<<<<< how much players whit same ip
text = "Multi-Client or Magebomb is not allowed so fuck off noob.",
group_id = 1 -- only kick player with group id 1 (normal players)
}

local accepted_ip_list =""

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 would make the max 2 players, I've had numerous people on my server play who are siblings or girl/boyfriends; I think it would prevent a lot of issues by adjusting it to 2.
 
Back
Top