belier140
New Member
- Joined
- Apr 7, 2010
- Messages
- 36
- Reaction score
- 2
Well i have a script to remove frags and Red/Black skull when u use it, but im having a problem.... everything works fine, the players get their skull removed and all the frags, but it says that they have black skull.... like This:
00:58 Your black skull will expire at 28 May 2010 17:59:14.
Even when they have 0 frags...
This is the Script im using...
I hope u guys can help me. Thnx in advance ^^
00:58 Your black skull will expire at 28 May 2010 17:59:14.
Even when they have 0 frags...
This is the Script im using...
Code:
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
I hope u guys can help me. Thnx in advance ^^