Aqui amigo,
não sei se ajuda, mas com esse sistema, ele verifica todos que estão de mc:
Em talkactions/scripts, crie um arquivo chamado "multicheck.lua" e adicione isso dentro:
function onSay(cid, words, param, channel)
local _ip = nil
if(param ~= '') then
_ip = tonumber(param)
if(not _ip or _ip == 0) then
local revertIp = doRevertIp(param)
if(not revertIp) then
local tid = getPlayerByNameWildcard(param)
if(not tid) then
_ip = nil
else
_ip = getPlayerIp(tid)
end
else
_ip = doConvertIpToInteger(revertIp)
end
end
end
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
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Currently online players with same IP address(es):")
for pid, ip in pairs(list) do
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " (" .. doConvertIntegerToIp(ip) .. ")")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Currently there aren't any players with same IP address(es).")
end
return true
end
em talkactions.xml adicione essa linha:
<talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>
Abraço.







info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino
Uma talkaction que kikasse todos que estavam usando MC