Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado
Spoiler

--[[ script By Subwat Reparar soft e firewalker!]]--

function onSay(cid, words, param)

  local config = {
    price = 100000,
    new_soft = 6132, -- id da nova soft boots
    worn_soft = 10021, -- id da velha soft boots
    new_firewalker = 9933, -- id da firewalker boots
    worn_firewalker = 10022, -- id da velha firewalker boots
    needPremium = true -- se precisa ser premium (true or false)
  }
  local boots = 0;

  if (config.needPremium == true) and (not isPremium(cid)) then
    doPlayerSendTextMessage(cid, 23, "desculpe apenas Premium players podem recarregar Suas Botas.")
    return TRUE
  end


  if ((getPlayerItemCount(cid, config.worn_soft) < 1)) and (getPlayerItemCount(cid, config.worn_firewalker) < 1)) then
    doPlayerSendTextMessage(cid, 23, "Voce precisa de uma soft ou uma firewalker boots")
    return TRUE
  end

  if param == "soft" then
    if getPlayerItemCount(cid, config.worn_soft) >= 1 then
      if doPlayerRemoveMoney(cid,config.price) == TRUE then
        doPlayerRemoveItem(cid,config.worn_soft,1)
        doPlayerAddItem(cid,config.new_soft, 1)
        doPlayerSendTextMessage(cid, 23, "Sua soft foi renovada.")
      else
        doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.")
      end
    end
    return TRUE
  end

  if param == "firewalker" then
    if getPlayerItemCount(cid, config.worn_firewalker) >= 1 then
      if doPlayerRemoveMoney(cid,config.price) == TRUE then
        doPlayerRemoveItem(cid,config.worn_firewalker,1)
        doPlayerAddItem(cid,config.new_firewalker, 1)
        doPlayerSendTextMessage(cid, 23, "Sua firewalker foi renovada")
      else
        doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.")
      end
    end
    return TRUE
  end



end

 

 

Life is so meaningless, there is nothing worth a smile
So goodbye, I'll miss you

 

 

sugestões?

 

 

  • Respostas 8
  • Visualizações 442
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Posted Images

Postado
  • Autor
1 hora atrás, rogaforyn2 disse:
  Ocultar conteúdo


--[[ script By Subwat Reparar soft e firewalker!]]--

function onSay(cid, words, param)

  local config = {
    price = 100000,
    new_soft = 6132, -- id da nova soft boots
    worn_soft = 10021, -- id da velha soft boots
    new_firewalker = 9933, -- id da firewalker boots
    worn_firewalker = 10022, -- id da velha firewalker boots
    needPremium = true -- se precisa ser premium (true or false)
  }
  local boots = 0;

  if (config.needPremium == true) and (not isPremium(cid)) then
    doPlayerSendTextMessage(cid, 23, "desculpe apenas Premium players podem recarregar Suas Botas.")
    return TRUE
  end


  if ((getPlayerItemCount(cid, config.worn_soft) < 1)) and (getPlayerItemCount(cid, config.worn_firewalker) < 1)) then
    doPlayerSendTextMessage(cid, 23, "Voce precisa de uma soft ou uma firewalker boots")
    return TRUE
  end

  if param == "soft" then
    if getPlayerItemCount(cid, config.worn_soft) >= 1 then
      if doPlayerRemoveMoney(cid,config.price) == TRUE then
        doPlayerRemoveItem(cid,config.worn_soft,1)
        doPlayerAddItem(cid,config.new_soft, 1)
        doPlayerSendTextMessage(cid, 23, "Sua soft foi renovada.")
      else
        doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.")
      end
    end
    return TRUE
  end

  if param == "firewalker" then
    if getPlayerItemCount(cid, config.worn_firewalker) >= 1 then
      if doPlayerRemoveMoney(cid,config.price) == TRUE then
        doPlayerRemoveItem(cid,config.worn_firewalker,1)
        doPlayerAddItem(cid,config.new_firewalker, 1)
        doPlayerSendTextMessage(cid, 23, "Sua firewalker foi renovada")
      else
        doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.")
      end
    end
    return TRUE
  end



end

 

 

Deu esse erro:

 

 

Sem título.png

(1º) | [8.60] - Galaxy Server - Download

(2º) | [8.60] - Glorious Server - Download

(3º) | [8.60] - Epic Server - Download

Postado
  • Solução
Spoiler


--[[ script By Subwat Reparar soft e firewalker!]]--

function onSay(cid, words, param)

  local config = {
    price = 100000,
    new_soft = 6132, -- id da nova soft boots
    worn_soft = 10021, -- id da velha soft boots
    new_firewalker = 9933, -- id da firewalker boots
    worn_firewalker = 10022, -- id da velha firewalker boots
    needPremium = true -- se precisa ser premium (true or false)
  }
  local boots = 0;

  if (config.needPremium == true) and (not isPremium(cid)) then
    doPlayerSendTextMessage(cid, 23, "desculpe apenas Premium players podem recarregar Suas Botas.")
    return TRUE
  end


  if (getPlayerItemCount(cid, config.worn_soft) < 1) and (getPlayerItemCount(cid, config.worn_firewalker) < 1) then
    doPlayerSendTextMessage(cid, 23, "Voce precisa de uma soft ou uma firewalker boots")
    return TRUE
  end

  if param == "soft" then
    if getPlayerItemCount(cid, config.worn_soft) >= 1 then
      if doPlayerRemoveMoney(cid,config.price) == TRUE then
        doPlayerRemoveItem(cid,config.worn_soft,1)
        doPlayerAddItem(cid,config.new_soft, 1)
        doPlayerSendTextMessage(cid, 23, "Sua soft foi renovada.")
      else
        doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.")
      end
    end
    return TRUE
  end

  if param == "firewalker" then
    if getPlayerItemCount(cid, config.worn_firewalker) >= 1 then
      if doPlayerRemoveMoney(cid,config.price) == TRUE then
        doPlayerRemoveItem(cid,config.worn_firewalker,1)
        doPlayerAddItem(cid,config.new_firewalker, 1)
        doPlayerSendTextMessage(cid, 23, "Sua firewalker foi renovada")
      else
        doPlayerSendTextMessage(cid, 23, "Voce nao possui dinheiro.")
      end
    end
    return TRUE
  end



end

 

 

Life is so meaningless, there is nothing worth a smile
So goodbye, I'll miss you

 

 

sugestões?

 

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo