Ir para conteúdo

Featured Replies

Postado

Boa tarde galera,

bem eu tenho um server de war 

porem eu tenho um script para que as pessoas evitem de fazer "Free Exp" com Mc , contudo algumas pessoas pedem para eu "liberar" para elas pois estam muitas vezes jogando com amigos ou irmaos...

 

Enfim,

[PEDIDO]

Eu queria pedir a vocês para modificar o script (onkill) de forma que quando eu colocasse o nome dos players em algum lugar , os mesmos seriam "livres" desse script.

-----------------------------------------------------------------------------------------------------------------------

 

function onKill(cid, target, lastHit)
if cid ~= target and isPlayer(target) then
if getPlayerIp(cid) == getPlayerIp(target) then
doCreatureAddHealth(cid, -500)
doCreatureAddMana(cid, -500)
doPlayerAddExperience(cid, -20000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Punished for killing player with the same IP!!')
else
doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198)
end
end
return true
end
 
----------------------------------------------------------------------------------------------------------------------------------------
 
Obrigado 
 
Att.Rlossio

 

 

Postado

local players = {"Test", "Tester", "Testinha"}         --Aqui você configura o nome dos jogadores que o script ignorará.
function onKill(cid, target, lastHit)
    if cid ~= target and isPlayer(target) then           
        if not isInArray(players, getCreatureName(cid)) and getPlayerIp(cid) == getPlayerIp(target) then
            doCreatureAddHealth(cid, -500)
            doCreatureAddMana(cid, -500)
            doPlayerAddExperience(cid, -20000000)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Punished for killing player with the same IP!!')
        else
            doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198)
        end
    end
    return true
end

não respondo pms solicitando suporte em programação/scripting

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