storage1 = 25678 -- save the normal lose procent of player
storage2 = 25679 -- save the normal lose procent of player
storage3 = 25680 -- save the normal lose procent of player
storage4 = 25681 -- save the normal lose procent of player
function onEquip(cid, item, slot)
setPlayerStorageValue(cid, storage1, getPlayerLossPercent(cid, 0))
setPlayerStorageValue(cid, storage2, getPlayerLossPercent(cid, 1))
setPlayerStorageValue(cid, storage3, getPlayerLossPercent(cid, 2))
setPlayerStorageValue(cid, storage4, getPlayerLossPercent(cid, 3))
doPlayerSetLossPercent(cid, 0, 0)
doPlayerSetLossPercent(cid, 1, 0)
doPlayerSetLossPercent(cid, 2, 0)
doPlayerSetLossPercent(cid, 3, 0)
end
function onDeEquip(cid, item, slot)
doPlayerSetLossPercent(cid, 0, setPlayerStorageValue(cid, storage1))
doPlayerSetLossPercent(cid, 1, setPlayerStorageValue(cid, storage2))
doPlayerSetLossPercent(cid, 2, setPlayerStorageValue(cid, storage3))
doPlayerSetLossPercent(cid, 3, setPlayerStorageValue(cid, storage4))
end