Jump to content
Message added by xNullPointer95,

CF_Banner_A.png.5a384e2c218221e0c3a03a5617655c86.png

1 Screenshot

  • 3.1k
  • 77
  • 10.91 kB
  • Update details
    v1.0.3
    Released
    Download size10.91 kB
    Total versions4
    Time between versions 16 days
    Typical update pace About every 66 days
    Freshness 104 days ago

About Custom Magazine Capacity

xMagazineCapacity

- Set a custom magazine capacity for any weapon.

- Define a default capacity

- Define a permission or not for any custom magazine capacity

spacer.png

 

Default Config

{
  "Weapons": [
    {
      "weaponName": "rifle.ak",
      "capacity": 45,
      "defaultCapacity": 30,
      "permission": ""
    },
    {
      "weaponName": "rocket.launcher",
      "capacity": 3,
      "defaultCapacity": 1,
      "permission": "xmagazinecapacity.rocketlauncher3"
    },
    {
      "weaponName": "rocket.launcher",
      "capacity": 6,
      "defaultCapacity": 1,
      "permission": "xmagazinecapacity.rocketlauncher6"
    }
  ],
  "RevokePermissionsOnUnload": false,
  "RestoreRevokedPermissionsOnLoad": true
}

ℹ️ Keep "permission" empty to override magazine capacity for all players. When config is changed, reload the plugin.

 

➡️ Add as much weapons as you want.

 

➡️ Multiple permissions for same weapon

If you have identical weapon names with different permissions, the capacity will be taken from the one with the highest capacity.

Example: 3 times "rocket.launcher" with different permissions: xmagazinecapacity.rl3, xmagazinecapacity.rl6, xmagazinecapacity.rl9 - If a player has all 3 permissions, the capacity will be 9, since its the one with most capacity.

 

➡️ RevokePermissionsOnUnload/RestoreRevokedPermissionsOnLoad

"RevokePermissionsOnUnload": When the plugin unloads, it takes back any weapon permissions it granted while plugin was running.

"RestoreRevokedPermissionsOnLoad": If you turned the "RevokePermissionsOnUnload" on, this restore option puts revoked permissions back on the same players the next time the plugin loads. (It only affects xmagazinecapacity configured permissions)

  • Like 1
  • Love 1

User Feedback

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
155k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • 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.