darkmu
Well-Known Member
I am currently using the skull remover, but I found that it also removed all the frags from the player. But what is happening and that whenever he uses the item after he kills the next player he goes back to get skull again (red skull), is there any way I can reset his entire frag?
TFS 1.3
I have already done a good search and have not found a solution to this problem.
TFS 1.3
Lua:
function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
player:setSkull(SKULL_NONE)
player:setSkullTime(0)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Your skull has been removed!")
db.query("UPDATE player_deaths SET unjustified = 0 WHERE unjustified = 1 AND killed_by = " .. db.escapeString(player:getName()))
item:remove(1)
return true
end
I have already done a good search and have not found a solution to this problem.