More Better...
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= 200 then -- if is more than level 50
if getPlayerStorageValue(cid,10400) ~= 1 then
doPlayerSendTextMessage(cid,22,"Here is your reward!")
doPlayerAddItem(cid,2160,2) --...