function onUse(cid, words, param) local itemWin, itemCount = 2160, 10 local storage = 3822 if getPlayerStorageValue(cid, storage) > 0 then return doPlayerSendCancel(cid, "Sorry, not possible.") end return doPlayerAddItem(cid, itemWin, itemCount) and doPlayerSendTextMessage(cid, 27, "You win " .. itemCount .. "x " .. getItemNameById(itemWin) .. " .") and setPlayerStorageValue(cid, storage, 1) end
e pra level 100 mais só usar:
if getPlayerLevel(cid) < 100 then
return doPlayerSendCancel(cid, "Sorry, only levels 100 or higher.")
end




info
Grupo: Campones
Registrado: 16/10/12
Posts: 17
Reputação: 0
Não tem nenhum lugar pra por o lv que o player pode fazer a quest? :s na hr qe ele clica na caixa. aparecer . ex ; srry, só lv 100?