• Pointshop ammo restrictions
    3 replies, posted
So i added css knife and smoke grenades, however, when you buy either one from the pointshop (by unknown) you get 9,999... i obviously only want them to have 1, so is there anyway i can adjust that? Is it in the pointshop files, or the weapon files?
1. Change ITEM.SingleUse to true. 2. Check the SWEP file to see how much ammo is given.
I found this, and this is this is the reason i am confused: [CODE]SWEP.Primary.ClipSize = -1 SWEP.Primary.DefaultClip = 1 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "grenade"[/CODE] That is what its set as, without me changing it... what else would there be to change?
Got it! Just went into my init.lua and edited this: [CODE] if wep.Primary and wep.Primary.Ammo and wep.Primary.Ammo != "none" then ply:GiveAmmo( 1, wep.Primary.Ammo, true ) -- I changed it to say 1 end[/CODE] Where it says 1, it used to say 100000000...
Sorry, you need to Log In to post a reply to this thread.