Here you are, a script for clean unjustified frags, you don't need to relog... use it and frags and skull removed :thumbup:
Lua:
local config = {
remove_Skulls = true;
};
function onUse(cid, item, frompos, item2, topos)
if config.remove_Skulls == TRUE then
if getPlayerSkullType(cid) > 3 then
doCreatureSetSkullType(cid, 0)
end
end
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ");")
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Your frags where successfully cleaned.")
return TRUE
end
Last edited: