while(counter < 3 && WeaponList.Length > 0) { while(i++ < WeaponList.Length) { x = Rand(10); if(x < WeaponList[i].default.BotPurchaseProbMod) { Loadout.Weapons[counter++] = Weaponlist[i]; Loadout.ExtraAmmo[i] = WeaponList[i].default.BotPurchaseProbMod; WeaponList.Remove(i, 1); } } }