Ir para conteúdo

ntoserver

Campones
  • Total de itens

    6
  • Registro em

  • Última visita

Posts postados por ntoserver

  1. queria sabe como ponho pra somente player premium use a potion vo deixa aki a baixo esse scripts e do nto shippuden da pill ma queria por so pra premium usa

     

    local temp = {

    exhausted = 2,
    storage = 2100
    }
    local confg = {
    level = 100,
    }
    function onUse(cid, item, fromPosition, itemEx, toPosition)
    local hp = 50000
    local mp = 50000
    if(getPlayerStorageValue(cid, temp.storage) > os.time() and getPlayerStorageValue(cid, temp.storage) < 100+os.time()) then
    doPlayerSendTextMessage(cid, 24, "você esta exausto, espere " .. getPlayerStorageValue(cid, temp.storage) - os.time() .. ' segundo' .. ((getPlayerStorageValue(cid, temp.storage) - os.time()) == 2 and "" or "s"))
    return true
    elseif getPlayerLevel(cid) < confg.level then
    doPlayerSendCancel(cid, "You need to be atleast level ".. confg.level ..".")
    return true
    end
    doCreatureAddHealth(cid, hp)
    doCreatureAddMana(cid, mp)
    doSendMagicEffect(getCreaturePosition(cid), 13)
    doRemoveItem(item.uid,1)
    setPlayerStorageValue(cid, temp.storage, os.time() + temp.exhausted)
    return true
    end
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...