doRemoveItem(item.uid)
Era para estar removendo eu acho, ponha o ID do item entre os parenteses.
info
Grupo: Artesão
Registrado: 24/11/13
Posts: 108
Reputação: +8

doRemoveItem(item.uid)
Era para estar removendo eu acho, ponha o ID do item entre os parenteses.
Tenta assim:
function onUse(cid, item, fromPosition, item2, toPosition)
local nonremskulls = {red = SKULL_RED, white = SKULL_WHITE, black = SKULL_BLACK}
if getPlayerStorageValue(cid,1800) == 10 then
doCreatureSay(cid, "You can not remove your frags and their skulls.", TALKTYPE_ORANGE_1)
else if getPlayerLevel(cid) >= 10 then
doCreatureSay(cid, "Your Frags were successfully removed.", TALKTYPE_ORANGE_1)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doCreatureSetSkullType(cid,0)
doSendMagicEffect(fromPosition, 37)
doRemoveItem(item.uid, 1)
setPlayerStorageValue(cid,1800,20)
return TRUE
else
doCreatureSay(cid, "Only people level 10 can use this item.", TALKTYPE_ORANGE_1)
end
end
end
Editado Novembro 26 por zipter98
info
Grupo: Campones
Registrado: 22/11/13
Posts: 51
Reputação: 0
[Resolvido]Olá,tenho um script de remove frags mas quando uso ele ,ele não some da backpack.
Como faz para ele sumir apos usar?
Editado Novembro 26 por Mycry