Hello
I got this problem , when i got the pro weapon upgrader on floor and right click , the weapon upgrades but the pro weapon upgrader is still there, how can i fix that?
I got this problem , when i got the pro weapon upgrader on floor and right click , the weapon upgrades but the pro weapon upgrader is still there, how can i fix that?
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2354 then
if doPlayerRemoveItem(cid,8931,1) == 1 then
doPlayerAddItem(cid,8932,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,8925,1) == 1 then
doPlayerAddItem(cid,7434,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,7422,1) == 1 then
doPlayerAddItem(cid,7429,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,8850,1) == 1 then
doPlayerAddItem(cid,8851,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
elseif item.itemid == 2354 then
if doPlayerRemoveItem(cid,8920,1) == 1 then
doPlayerAddItem(cid,8922,1)
doPlayerRemoveItem(cid,2354,1)
doPlayerSendTextMessage(cid,21,"Your weapon has been upgraded!")
else
doPlayerSendCancel(cid, "You do not have any pro items to uprgade!")
end
end
end
end
end
end
return 1
end