Ir para conteúdo

Featured Replies

Postado

Olá Senhores,

 

 por favor, alguém poderia me ajudar com a script abaixo ?

 

 No momento ela não funciona. Ao matar o player, o coração não aparece.

 

 

 

function onKill(cid, target)

 
 
    if isPlayer(cid) and isPlayer(target) then
    if getPlayerIp(cid) ~= getPlayerIp(target) then
 
 local config = {
 
Kname = getPlayerName(cid),
Tname = getPlayerName(target),
Tlevel = getPlayerLevel(target),
}
 
local heart = doPlayerAddItem(cid, 5943, 1)
 
doItemSetAttribute(heart, "name", "" ..config.Tname.. " Heart's")
doItemSetAttribute(heart, "description", "Killed at Level "..config.Tlevel.." by "..config.Kname..". " .. (getCreatureSkullType(cid) <= SKULL_GREEN and "(Unjustified)" or "(Justified)"))
 
    elseif getPlayerIp(cid) == getPlayerIp(target) then
doPlayerAddExp(cid, -10000)
    end
end
return true
end

 

 

  • Respostas 8
  • Visualizações 563
  • Created
  • Última resposta

Top Posters In This Topic

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