xLosT
Member
send a message after 5 seconds and run the command removeplayer
(is ant mc)
(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