Ir para conteúdo

Featured Replies

Postado

Eu axo que não existe.. Só dando look no char dele !

Da +REP kk !

Te Ajudei ? +REP

 

Vendo VPS:

VPS-hosting.jpg

 

 

·         Processador: DUAL XEON

·         Memória Ram: Até 10GB

·         UPLINK: 1GBPS FULL DUPLEX

·         Tráfego: Ilimitado

·         Proteção DDoS Básica

·         01 IP FIXO

·         Plataforma: KVM/XEN ou OPENVZ

·         Painel SolusVM Integrado

·         SO: Windows ou Linux

 
·         Preço: a parti de 30,00

 

 

Vendo servidores de Tibia:

PBOT Full 8.60 e 9.8 (Sem bugs algum, totalmente igual ao original, Suprem Vocation, Vem com site etc)

Global Full 9.60 (Sem bugs, mapa totalmente igual ao original, Montaria.. )

  • Respostas 7
  • Visualizações 627
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Postado

Acho que ficaria assim mais ou menos:

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)
                    if(_ip == 0) then
                        _ip = nil
                    end
                end
            else
                _ip = doConvertIpToInteger(revertIp)
            end
        end
    end

    local list, ips, players = {}, {}, getPlayersOnline()
    for i, pid in ipairs(players) do
        local ip = getPlayerIp(pid)
        if(ip ~= 0) then
            local tmp = table.find(ips, ip)
            if(tmp ~= nil and) then
                if(table.countElements(list, ip) == 0) then
                    list[players[tmp]] = ip
                end

                list[pid] = ip
            end

            table.insert(ips, ip)
        end
    end

    local total = table.maxn(list)
    if(total > 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
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Total: " .. total .. " clients with more than one connection.")
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Currently there aren't any players with same IP address(es).")
    end

    return true
end

 

Testa ai, to com sono e só tirei a função de ip = ip...

Bruno Carvalho / Ex-Administrador TibiaKing

b.camara@live.com

 

  Em 26/12/2016 em 05:47, Spraypaint disse:

A força da alienação vem dessa fragilidade dos indivíduos, quando apenas conseguem identificar o que os separa e não o que os une.

-miltinho

 

wMwSJFE.png?1

 

Postado
  • Autor
  Em 26/04/2013 em 01:22, comedinhasss disse:

Acho que ficaria assim mais ou menos:

 

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)
                    if(_ip == 0) then
                        _ip = nil
                    end
                end
            else
                _ip = doConvertIpToInteger(revertIp)
            end
        end
    end

    local list, ips, players = {}, {}, getPlayersOnline()
    for i, pid in ipairs(players) do
        local ip = getPlayerIp(pid)
        if(ip ~= 0) then
            local tmp = table.find(ips, ip)
            if(tmp ~= nil and) then
                if(table.countElements(list, ip) == 0) then
                    list[players[tmp]] = ip
                end

                list[pid] = ip
            end

            table.insert(ips, ip)
        end
    end

    local total = table.maxn(list)
    if(total > 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
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Total: " .. total .. " clients with more than one connection.")
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Currently there aren't any players with same IP address(es).")
    end

    return true
end

 

Testa ai, to com sono e só tirei a função de ip = ip...

Ok, mais como ficaria no talkactions?

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo