Jump to content

Limit Max Purchases to 1 for a player

Pending 1.2.26

NJordur
  • in Shop
NJordur

Posted

I am trying to test limiting an item to a max purchase of 1.  I have the setting on the item called "Max Buy Amount" set to 1, but I'm still able to purchase.  Is this because I'm in admin mode, or am I missing something?

NJordur

Posted

Here is the section for the item I'm testing.  If you need more than this, I can get more...

 

    {
      "Enabled": false,
      "Title": "TestCategory",
      "Permission": "",
      "Sort Type": "None",
      "Items": [
        {
          "Type": "Command",
          "ID": 900,
          "Image": "",
          "Title": "",
          "Description": "",
          "Command (%steamid%)": "recycler.give %steamid%",
          "Kit": "",
          "Plugin": {
            "Hook": "",
            "Plugin Name": "",
            "Amount": 0
          },
          "DisplayName (empty - default)": "Recycler",
          "ShortName": "recycler_static",
          "Skin": 0,
          "Is Blueprint": false,
          "Amount": 1,
          "Enable item buying?": true,
          "Price": 1000.0,
          "Enable item selling?": false,
          "Sell Price": 0.0,
          "Buy Cooldown (0 - disable)": 0.0,
          "Buy Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Sell Cooldown (0 - disable)": 0.0,
          "Sell Cooldowns (0 - no limit)": {
            "shop.default": 0.0,
            "shop.vip": 0.0
          },
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip": 10
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Daily Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Max Buy Amount (0 - disable)": 1,
          "Max Sell Amount (0 - disable)": 0,
          "Force Buy": false,
          "Prohibit splitting item into stacks?": false,
          "Localization": null,
          "Content": {
            "Enabled": false,
            "Contents": [
              {
                "ShortName": "",
                "Condition": 100.0,
                "Amount": 1,
                "Position": -1
              }
            ]
          },
          "Weapon": {
            "Enabled": false,
            "Ammo Type": "",
            "Ammo Amount": 1
          }
        }
      ],
      "Localization": {
        "Enabled": false,
        "Text (language - text)": {
          "en": "",
          "fr": ""
        }
      }
    }
 

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.