So I use this tut for my buyable max ammo, it works well: http://modsonline.com/Forums-top-102627.html?start= But the problem is, it seems like it only lets me buy ammo when my weapon amount gets to a certain point.
For example, Say I have an MP40. 32 in clip plus 160 reserved (192 reserved at max ammo) It won't let me buy ammo for it until say I get down to like 100 reserved ammo.
I figure this is an easy fix, I just don't know how to go about doing it, thanks in advance!
So I use this tut for my buyable max ammo, it works well: http://modsonline.com/Forums-top-102627.html?start= But the problem is, it seems like it only lets me buy ammo when my weapon amount gets to a certain point.
For example, Say I have an MP40. 32 in clip plus 160 reserved (192 reserved at max ammo) It won't let me buy ammo for it until say I get down to like 100 reserved ammo.
I figure this is an easy fix, I just don't know how to go about doing it, thanks in advance!
It could be this:
Code Snippet
Plaintext
weapon = who GetCurrentWeapon(); ammocount = who getammocount(weapon); clipcount = who getweaponammoclip(weapon); maxammo = weaponmaxammo(weapon);
if( give > 0 ) { who givemaxammo( who GetCurrentWeapon() ); who maps\_zombiemode_score::minus_to_player_score( self.zombie_cost ); who playsound( "cha_ching" ); } else { who playsound( "no_cha_ching" ); }
Or you didn't have enough points, but I doubt you overlooked that.
Is it playing any sounds?
Last Edit: April 17, 2015, 08:29:31 pm by MakeCents
if( give > 0 ) { who givemaxammo( who GetCurrentWeapon() ); who maps\_zombiemode_score::minus_to_player_score( self.zombie_cost ); who playsound( "cha_ching" ); } else { who playsound( "no_cha_ching" ); }
It doesn't make the sound, it just doesn't give the gun ammo until about 2 clips have been shot. I know it isn't a huge deal, but with the way my current WIP plays, it would be best to be able to just buy ammo even if you're one bullet
EDIT: and yes, I made sure I had points. Its just a little odd
Last Edit: April 17, 2015, 08:31:34 pm by tannnnnaiirrr