26-02-21, 21:47 | #1 |
Member
Joined: Aug 2008
Posts: 32
|
CUST_AMMO not working properly
Hey all,
It's been a while since I've properly posted. I've been playing around the with script as I was wanting to make it so the pistols are no longer unlimited ammo. I had it working on an old project however it appears the CUST_AMMO script command isn't working at all. This is the code I am using: Code:
Customize= CUST_AMMO, PISTOLS_AMMO_ITEM, IGNORE, 1, 20, 0, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE Thanks! |
26-02-21, 22:15 | #2 |
Member
Joined: Jul 2016
Posts: 1,905
|
^are you using Classic Inventory plugin? that might be why it doesn't work, as that plugin uses its own script lines
I think it will be cust_cinv_ammo instead of cust_ammo if that's the case |
26-02-21, 22:28 | #3 |
Member
Joined: Aug 2008
Posts: 32
|
I am using the Classic Inventory plugin - I just removed the plugin and it's fixed the issue... well partially, as I would like to use the inventory plugin too... Thanks!
|
26-02-21, 23:08 | #4 |
Member
Joined: Feb 2006
Posts: 1,517
|
I *just* ran into this issue with the classic inventory. Here's the code I used to customize ammo (in this case, the shotgun pickup and associated Ammo 1):
Customize= CUST_CINV_AMMO, CINV_ITEM_SHOTGUN, CINV_ITEM_SHOTGUN_AMMO1, 2, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE Customize= CUST_CINV_ITEM_QUANTITY, CINV_ITEM_SHOTGUN_AMMO1, IGNORE, IGNORE, 2, IGNORE, IGNORE, IGNORE, IGNORE |
27-02-21, 07:23 | #5 |
Member
Joined: Aug 2008
Posts: 32
|
Thanks Craig!! That's great... works perfectly now!
|
Thread Tools | |
|
|