Bem vamos ao script:
Va na pasta do seu server,data,creaturescripts,creaturescripts.xml
E add isso:
<event type="login" name="playercheck" script="playercheck.lua"/>
Agora va na pasta scripts e crie um arquivo com o nome playercheck.lua
E add isso dentro:
function onLogin(cid, words, param, channel)
local _ip = nil
local p = 0
local list, ips = {}, {}
local players = getPlayersOnline()
for i, pid in ipairs(players) do
local ip = getPlayerIp(pid)
local tmp = table.find(ips, ip)
if(tmp ~= nil and (not _ip or _ip == ip)) then
if(table.countElements(list, ip) == 0) then
list[players[tmp]] = ip
end
list[pid] = ip
end
table.insert(ips, ip)
end
if(table.maxn(list) > 0) then
meip = getPlayerIp(cid)
mename = getCreatureName(cid)
for pid, ip in pairs(list) do
local metmp = table.find(ips, meip)
if (metmp ~= nil) then
p = p + 1
end
end
if (p <= XXX) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce tem ".. p .." chars Online!")
end
if (p > XXX) then
doRemoveCreature(cid, mename)
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce tem ".. p+1 .." char Online!")
end
return true
end
Legenda:
XXX:Ai voce poem quantas contas entraram no server com o mesmo ip.
Fim.
Creditos:
90%Zerosky
10%TheDevilZ





info
Grupo: Campones
Registrado: 14/04/11
Posts: 0
Reputação: +1
Ola pessoal, estou aqui porque presciso de um sistema-anti Multi-client compativel com meu ot, que eh o Carlin War 8.6 (http://www.xtibia.com/forum/topic/146454-860-carlin-war/), eu ja testei muitos sistemas, acho que mais de 10 qeu eu achei aqui no xtibia e em outros forums, mais nenhum funcionou, entaum se alguem souber fazer ou ja tiver esse sistema compativel com o meu server por favor me passe! Obrigado!!