Hello guys =) I Need help with making this script working 100% for 0.3.6 =)
Ofc u get rep++ =)
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
Ofc u get rep++ =)