• 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/mc

hioad

New Member
Joined
Feb 28, 2010
Messages
157
Reaction score
0
I serached on the forum but didin't find any working anti magebomb or mc for rev 0.4

would be thankful if you can help me with anti magebomb or anti mc :)




Thanks
 
Try
Lua:
local kickPlayers = true
local whitelist = {
	'127.0.0.1',
}

function onLogin(cid)
	if getPlayerGroupId(cid) == 1 and not isInArray(whitelist, doConvertIntegerToIp(getPlayerIp(cid))) and #getPlayersByIp(getPlayerIp(cid)) > 3 then
		doPlayerPopupFYI(cid, 'You cannot establish more than 2 connections from the same IP address.')
		if kickPlayers then
			local k = getPlayersByIp(getPlayerIp(cid))
			for i = 1, #k do
				if not hasCondition(k[i], CONDITION_INFIGHT) and getCreatureSkullType(k[i]) ~= SKULL_WHITE then
					doRemoveCreature(k[i])
				end
			end
		end
		return false
	end
	return true
end
or
http://otland.net/f132/i-need-anti-mage-bomb-76796/#post787685
http://otland.net/f132/anti-multiclient-mc-68223/#post700261
 
Back
Top