Postado Dezembro 4, 2014 10 anos 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
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.