function onUse(cid, item, frompos, item2, topos)
prize = item.uid
if prize > 1000 and prize < 5000 then
queststatus = getPlayerStorageValue(cid,prize)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'Number 4! .. '.')
doPlayerAddItem(cid,prize,4)
setPlayerStorageValue(cid,prize,4)
else
doPlayerSendTextMessage(cid,22,"You have already completed this number WTF?.")
end
return 1
else
return 0
end
end
Lua:function onUse(cid, item, frompos, item2, topos) prize = item.uid if prize > 1000 and prize < 5000 then queststatus = getPlayerStorageValue(cid,prize) if queststatus == -1 then doPlayerSendTextMessage(cid,22,'Number 4! .. '.') doPlayerAddItem(cid,prize,4) setPlayerStorageValue(cid,prize,4) else doPlayerSendTextMessage(cid,22,"You have already completed this number WTF?.") end return 1 else return 0 end end
function onUse(cid, item, frompos, item2, topos)
prize = item.uid
if prize > 1000 and prize < 5000 then
queststatus = getPlayerStorageValue(cid,prize)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Number 4! .. .")
doPlayerAddItem(cid,prize,4)
setPlayerStorageValue(cid,prize,4)
else
doPlayerSendTextMessage(cid,22,"You have already completed this number WTF?.")
end
return 1
else
return 0
end
end