avastsz2856
New Member
- Joined
- Jul 9, 2017
- Messages
- 15
- Reaction score
- 1
Hello, I need help to convert this script to version 1.2, could anyone help me?
Lua:
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