i have a little problem with this script, the item dont remove if use it in the floor X_XTry this:
Code:function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) if not player:isPzLocked() then player:setSkullTime(0) player:setSkull(0) player:sendTextMessage(MESSAGE_INFO_DESCR, "Congratulations! You have reseted your frags count.") doPlayerRemoveItem(cid, item.uid, 1) else player:sendCancelMessage("You can't reset your frags count, while you are in battle.") end return true end
i have a little problem with this script, the item dont remove if use it in the floor X_X
Change:
doPlayerRemoveItem(cid, item.uid, 1)
To:
Item(item.uid):remove()
I FIX NOW thanks ninja.. sorry for the double post i forgot that the page with the source was named GitHub xd...i am a little bit noob on this :S .. so where i can find the GitHub repository?
Hey, I have an question and I know its pretty stupid but.. When I'm supposed to import the database to the localhost site, Znote's says that it is theforgottenserver.sql file I am supposed to import, but since this is Teckmans, which file is it I am supposed to import? Sorry for my bad english and sorry if its a bad question.. :/
Thanks,
Rasmus