• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Rox "Pro Update"

Grabek980

New Member
Joined
Aug 9, 2010
Messages
70
Reaction score
0
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

Ten skrypt nie działa poprawnie ponieważ usuwa item a nie daje nowego
 
Back
Top