function onUse(cid, item, fromPosition, itemEx, toPosition)
doCreatureSay(cid, "tekst", TALKTYPE_ORANGE_1)
doPlayerSetRedSkullTicks(cid, 0)
doRemoveItem(item.uid,9019)
doRemoveCondition(cid,CONDITION_INFIGHT)
end
local config =
{
item = itemid, -- itemid the item you right click on and reset your frags.
level = 1,
count = 0
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed. \n Thanks For Donate!")
doRemoveItem(item.uid)
getPlayerSkullType(cid, 0)
getPlayerSkullType(cid, 0)
else
doPlayerSendCancel(cid, "You dot have enough level")
end
return TRUE
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerRedSkullTicks(cid) == 0) then
doCreatureSay(cid, "You dont have any frags!", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Frags sucesfully removed.", TALKTYPE_ORANGE_1)
doPlayerSetRedSkullTicks(cid, -getPlayerRedSkullTicks(cid))
doTransformItem(item.uid, 2320)
end
end