So i made a script that if you use item it gives you demon hunter second addon, but how can i make that if you once used it you can't use it anymore and says "You already have this addon."?
Script is
Thanks !
Script is
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) < 8 then
doCreatureSay(cid, 'You must be over level 8 to use this scroll', TALKTYPE_ORANGE_1)
return false
end
doRemoveItem(item.uid)
doPlayerRemoveItem(cid, 2349, 1)
doPlayerAddOutfit(cid,288,2)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations, you got demon hunter addon!")
return true
end
Thanks !