There are many ideas of how to do it, which mainly depend upon how you want to work the guns. If you want more than one gun at a time, I would recommend having an amount of physical units in a storage area that represent different types of shots, perhaps using the minimap to show how many shots are left. With only using one gun at a time, I'd just keep count of them using death counters, and when you select a gun, set either gas or ore to how many deaths there are left using a binary countoff.
Yes, but how
I do.
Current player brings exactly 1 Handgun at location
Show Leader board Handgun Ammunition
Current Player kills 1 Mumbler
Substarct 3 customs
Current player brings exactly 1 Shotgun at location
Show Leader board Shotgun Ammunition
Current Player kills 1 Mumbler
Substarct 1 customs
but its the same leader board n they substarct the same board
If you want a universal ammo for all 4 guns, just subtract the same amount no matter what gun is used.
If you want a different ammo for each gun, use different units, and do a leaderboard for Controls at location. The downside to this, hoever, is that leaderboards apply to all players whereas different players may be wielding different weapons at the same time. The method to get around this is what I mentioned earlier of just using 4 death counts for the ammos to 4 different guns, and then set minerals or gas equal to the amount of ammo left depending on which gun/death count being used. This is done with binary countoffs.. I'm not sure how familiar you are with them, but mention if you want this described, as well as in what detail.
Alright, this is how you'd do it.. have two death counters for each gun, one for ammo and one for saying that this gun is selected. A physical distinction, such as owning a certain unit somewhere, can replace the second death counter for each gun. Either resource will work, but I will use ore as an example. Also, in my example, I won't make a distinction between different ammo used to kill different units.. you can do that.
1. (handgun selected) deaths is exactly 1, kills score is atleast 1: subtract 3 (handgun ammo deaths), subtract 3 ore, set kills score to 0, preserve trigger.
2. (handgun selected) deaths is exactly 1, (handgun ammo) deaths is exactly 0: set ally to computer, preserve trigger.
3. (conditions for choosing shotgun): set (shotgun selected)'s deaths to 1, set (other guns' selected) to 0, set ore to 0, clear the conditions for choosing shotgun, add the new units, etc. preserve trigger.
5. (shotgun selected), player suffers atleast 31 (shotgun ammo) deaths, accumulates at most 16 ore: add 15 ore, preserve
(shotgun selected), player suffers atleast 15 (shotgun ammo) deaths, accumulates at most 8 ore: add 7 ore, preserve
(shotgun selected), player suffers atleast 7 (shotgun ammo) deaths, accumulates at most 4 ore: add 3 ore, preserve
(shotgun selected), player suffers atleast 3 (shotgun ammo) deaths, accumulates at most 2 ore: add 1 ore, preserve
Now, copy it as high up so that the "atleast" condition is a number they won't ever achieve.
Just do that for all the weapons and it should work.