Hey, I have this script:
If I want to delete black skull is it enaugh to add
under
?
Also I would to add "if player has 0 frags then its impossible to use rune on him"
thanks
Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed.")
doRemoveItem(item.uid)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doPlayerSetSkullEnd(cid, 0, SKULL_RED)
else
doPlayerSendCancel(cid, "You dot have enough level")
end
return TRUE
end
If I want to delete black skull is it enaugh to add
Code:
doPlayerSetSkullEnd(cid, 0, SKULL_BLACK)
Code:
doPlayerSetSkullEnd(cid, 0, SKULL_RED)
Also I would to add "if player has 0 frags then its impossible to use rune on him"
thanks