D
Deleted member 49793
Guest
Like title says, I have starting gear that i want players to have the option of getting 3-4 of the starting backpacks etc. How do i do this? remove the unique ID or what?
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 9001) > 3 then
doPlayerPopupFYI(cid, "You may only get the starting backpack 3 times.")
return false
end
doPlayerAddItem(cid, YOUR_REWARD, 1)
setPlayerStorageValue(cid, 9001, (getPlayerStorageValue(cid, 9001)+1))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found your starting backpack!")
return true
end