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

Edit please

xLosT

Member
Joined
Jan 11, 2010
Messages
1,021
Reaction score
13
Location
Brasil, Rio Grande do Sul
send a message after 5 seconds and run the command removeplayer

(is ant mc)

PHP:
local maximo = 2 -- Maximo de IP's iguais permitidos.

function remove(r)
if #getPlayersByIp(getPlayerIp(r.pid)) >= r.maximo then
addEvent(doRemoveCreature, 100, r.pid)
end
return TRUE
end

function onLogin(cid)
if getPlayerGroupId(cid) <= 1 then
if isInArray(getPlayerIp(cid)) == FALSE then
addEvent(remove, 500, {pid = cid, maximo = maximo+1})
end
end
return TRUE
end
 
LUA:
local max = 2
function onLogin(cid)
	if (#getPlayersByIp(getPlayerIp(cid)) >= (max+1) and getPlayerGroupId(cid) <= 1) then
		addEvent(function()
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You bla bla player with same IP address")
			addEvent(doRemoveCreature, 5000, cid)
		end, 1000)
	end
	return true
end

and klick here :)
 
Back
Top